linux:perintah-dasar
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:perintah-dasar [2017/02/22 04:44] – [whoami – Tells you which user is logged in] kbadmin | linux:perintah-dasar [2017/02/22 04:52] (current) – [tail] kbadmin | ||
---|---|---|---|
Line 39: | Line 39: | ||
[root@vnc script]# | [root@vnc script]# | ||
</ | </ | ||
+ | ===== rm - remove file or folder ===== | ||
+ | Menghapus file atau folder | ||
+ | < | ||
+ | [root@vnc script]# rm fileku.txt | ||
+ | rm: remove regular empty file `fileku.txt'? | ||
+ | [root@vnc script]# ls | ||
+ | cetak.sh | ||
+ | </ | ||
+ | ===== cp - copy file or folder ===== | ||
+ | untuk mengcopy file atau folder | ||
+ | < | ||
+ | [root@vnc script]# cp cetak.sh cetak-baru.sh | ||
+ | [root@vnc script]# ls | ||
+ | cetak-baru.sh | ||
+ | </ | ||
+ | ===== mv - move file or folder ===== | ||
+ | Untuk memindahkan/ | ||
+ | < | ||
+ | [root@vnc script]# mv cetak-baru.sh cetak-lama.sh | ||
+ | [root@vnc script]# ls | ||
+ | cetak-lama.sh | ||
+ | </ | ||
+ | ===== clear ===== | ||
+ | Untuk membersihkan layar | ||
+ | |||
+ | ===== mkdir - create directory ===== | ||
+ | Untuk membuat direktori baru | ||
+ | < | ||
+ | [root@vnc script]# mkdir direktoriku | ||
+ | [root@vnc script]# ls | ||
+ | cetak-lama.sh | ||
+ | </ | ||
+ | ===== cat ===== | ||
+ | Untuk menampilkan semua isi file | ||
+ | < | ||
+ | [root@vnc script]# cat cetak.sh | ||
+ | #!/bin/bash | ||
+ | |||
+ | echo " | ||
+ | |||
+ | [root@vnc script]# | ||
+ | </ | ||
+ | ===== tail ===== | ||
+ | Untuk menampilkan isi file dari bawah atau terakhir | ||
+ | < | ||
+ | [root@vnc script]# tail cetak.sh | ||
+ | #!/bin/bash | ||
+ | |||
+ | echo " | ||
+ | </ | ||
+ | |||
+ | ===== chmod - change file permission ===== | ||
+ | Untuk merubah permission file | ||
+ | < | ||
+ | [root@vnc script]# chmod 755 cetak.sh | ||
+ | [root@vnc script]# ls -l | ||
+ | total 20 | ||
+ | -rw-r--r-- 1 root root 39 Feb 22 09:45 cetak-lama.sh | ||
+ | -rwxr-xr-x 1 root root 39 Feb 22 09:01 cetak.sh | ||
+ | drwxr-xr-x 2 root root 4096 Feb 22 09:48 direktoriku | ||
+ | -rw-r--r-- 1 root root 41 Feb 22 09:26 variabel.sh | ||
+ | -rw-r--r-- 1 root root 43 Feb 22 09:30 variabel2.sh | ||
+ | </ | ||
+ | |||
+ | |||
Layanan
Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |linux/perintah-dasar.1487756653.txt.gz · Last modified: 2017/02/22 04:44 by kbadmin