ພື້ນຖານ Linux ຄໍາສັ່ງກ່ຽວກັບການ Linux ແລະ Windows ບົບປະຕິບັດ
ລາຍລັກອັກສອນນີ້ແມ່ນເປັນປະໂຫຍດສໍາລັບຜູ້ທີ່ຕ້ອງການຈະເລີ່ມຕົ້ນໄດ້ມີຄໍາສັ່ງ Linux. Here you will find the most common commands that are used in Linux.
ຖ້າຫາກວ່າທ່ານຕ້ອງການທີ່ຈະດໍາເນີນການຄໍາສັ່ງ Linux ກ່ຽວກັບ Windows ຫຼັງຈາກນັ້ນການຕິດຕັ້ງ Cygwin. Cygwin is a Linux layer on top of Windows that allows you to use Linux commands in Windows.
ຖ້າຫາກທ່ານຕິດຕັ້ງ Cygwin ໃນ Windows ຫຼັງຈາກນັ້ນເສັ້ນທາງໃນຕອນຕົ້ນໃນເວລາທີ່ທ່ານຈະເລີ່ມຕົ້ນໄດ້ Cygwin ປາຍຈະ:
C:\cygwin64\home\{username}
ສ້າງໃຫມ່ຍົກຕົວຢ່າງໄຟລ໌ notepad
touch textfile.txt
ລະບົບການປ່ຽນແປງ
cd {directory path\name}
List directory content in long format ( -l ) including hidden files and directories ( -ເປັນ )
ls -l -a
ls -al
Order files and directories by the time they were last modified
ls -t
List directory with pause and scrolling
ls -l | less
ສະແດງໃຫ້ເຫັນສະຖານທີ່ໃນປະຈຸບັນ (print working directory)
pwd
ສານສະກັດຈາກສຸດທ້າຍ 100 ຄໍາສັບຕ່າງໆຂອງໄຟລ໌
tail -100 {filename.extension}
ສານສະກັດຈາກທໍາອິດ 100 ແຖວເກັດທີ່ຢູ່ຂອງໄຟລ໌
head -100 {filename.extension}
ສໍາເນົາໄຟລ໌ເປັນ
cp {source} {destination}
ຍ້າຍໄຟ
mv {source} {destination}
ເຮັດໃຫ້ລະບົບໃຫມ່
mkdir {new directory name}
ລົບໄຟ
rm {filename}
Delete an empty directory
rmdir {directory to remove}
rm -d{directory to remove}
Delete directory and its contents
rm -r {directory to remove}
rm -R{directory to remove}
ຄັດເນື້ອໃນຂອງໄຟລ໌
sort {filename to sort}
ດຶງອອກຈາກການອອກສຽງທີ່ຊ້ໍາໃນໄຟ
uniq {filename to remove duplicates}
ການບີບໄຟ
gzip {filename}
ການບີບບົບ
gzip -r {directory name}
ນັບຈໍານວນຂອງແຖວເກັດທີ່ຢູ່ແລະຖ້ອຍຄໍາທີ່ຢູ່ໃນໄຟລ໌ຂໍ້ຄວາມ
wc {filename}
Search text within files for matching string pattern (case sensitive)
grep 'word' {filename}
Search text within files for matching string pattern (case insensitive)
grep -i 'word' {filename}
Search with a directory
grep -R Arctic /home/ccuser/workspace/geography
ສະແດງເນື້ອໃນຂອງໄຟລ໌ຂໍ້ຄວາມ
cat
sed stream editor (similar to find and replace)
sed 's/snow/rain/' forests.txt
ມີການປ່ຽນແປງລະບົບແລະເອກະສານການອະນຸຍາດ
chmod {options} {permissions} {filename}
ລາຍຊື່ຄໍາສັ່ງທີ່ຜ່ານມາການນໍາໃຊ້
history
ຈັດຕາຕະລາງອັດຕະໂນມັດວຽກງານ
cron
crontab
ການອະນຸຍາດເອກະສານການປ່ຽນແປງ
chmod {permission number} {some file or directory}
chmod 777 /storage
ການປ່ຽນແປງການອະນຸຍາດເອກະສານ recursive
chmod -R {permission number} {some file or directory}
