Perintah Pada Linux
mkdir – membuat direktori
v
Penggunaan: mkdir [OPTION] DIRECTORY…
v
Contoh: mkdir lhn
ls – list daftar direktori
v
Penggunaan: ls [OPTION]… [FILE]…
v
Contoh: ls, ls l, ls lhn
cd – mengubah direktori
v
Penggunaan: cd [DIRECTORY]
v Contoh: cd lhn
pwd - cetak nama direktori saat ini
v Penggunaan:
pwd
cp – copy file dan direktori
v
Penggunaan: cp [OPTION]… SOURCE DEST
v
Contoh: cp sample.txt sample_copy.txt
v
cp sample_copy.txt target_dir
mv – memindah (mengganti nama) file
v
Penggunaan: mv [OPTION]… SOURCE DEST
v
Contoh: mv source.txt target_dir
v
mv old.txt new.txt
rm – menghapus file atau direktori
v
Penggunaan: rm [OPTION]… FILE…
v Contoh: rm
file1.txt , rm rf some_dir
find – mencari
v
Penggunaan: find [OPTION] [path] [pattern]
v
Contoh: find file1.txt, find name file1.txt
history – prints recently used commands
v Penggunaan:
history
cat – menyatukan file dan menampilkan
dalam output standar
v
Penggunaan: cat [OPTION] [FILE]…
v
Contoh: cat file1.txt file2.txt
v
cat n file1.txt
echo – menampilkan baris teks
v
Penggunaan: echo [OPTION] [string] …
v
Contoh: echo I love India
v
echo $HOME
grep – menampilkan garis yang sesuai pola
v
Penggunaan: grep [OPTION] PATTERN [FILE]…
v
Contoh: grep i apple sample.txt
wc – menampilkan jumlah baris, kata
dan byte sebuah
file
v
Penggunaan: wc [OPTION]… [FILE]…
v
Contoh: wc file1.txt
v
wc L file1.txt
sort – menyortir
v
Penggunaan: sort [OPTION]… [FILE]…
v
Contoh: sort file1.txt
v
sort r file1.txt
passwd – update password
v
Penggunaan: passwd [OPTION]
v
Contoh: passwd
chmod – mengganti file permission
v
Penggunaan: chmod [OPTION] [MODE] [FILE]
v
Contoh: chmod 744 calculate.sh
poweroff – mematikan sistem
v
Penggunaan: poweroff [OPTION]
v
Contoh: poweroff
find – mencari dalam satu direktori
v
Penggunaan: find [OPTION] [path] [pattern]
v
Contoh: find name file1.txt
reboot – restart system
v
Penggunaan: reboot [OPTION]
v
Contoh: reboot
zip – mengarsip file
v
Penggunaan: zip [OPTION] DEST SOURSE
v
Contoh: zip original.zip original
unzip – membuka file yang diarsip ZIP
v
Penggunaan: unzip filename
v
Contoh: unzip original.zi
chown – mengganti pemilik file atau grup
v
Penggunaan: chown [OPTION]… OWNER[:[GROUP]] FILE…
v
Contoh: chown remo myfile.txt
kill – mematikan suatu proses
v
Penggunaan: kill [OPTION] pid
v
Contoh: kill 9 2275
ps – menampilkan snapshot proses saat ini
·
Penggunaan: ps [OPTION]
·
Contoh: ps, ps el
tar – mengarsipkan file
·
Penggunaan: tar [OPTION] DEST SOURCE
·
Contoh: tar cvf /home/archive.tar /home/original
·
tar xvf /home/archive.tar
Komentar
Posting Komentar