Anda di halaman 1dari 2

>ls (list semua file dan direktori yang ada dalam sebuah direktori)

>pwd (print working directory)


>cd direktori/direktori1 (change directory)
>cd .. (naik ke parent directory)
>mkdir (make directory)
>touch keyboard.txt (mebuat file baru)
>ls a (list melihat semua file yang berawalan dot . / hidden file)
>ls l (list all content in long format)
>ls -t (order files based on when they were last modified)
>cp frida.txt lincoln.txt (copy isi file ke lainnya)
>cp biopic/ray.txt biopic/nto.txt historical/ (copy banyak file ke direktori)
>mv frida.txt superhero/ (pindah/cut file ke direktori)
>cp m*.txt superhero/ (pindah semua yang berawalan m dan .txt ke
direktori)
>rm guruh.txt (hapus permanen file)
>rm r belajar (hapus permanen direktori dan isi2 nya)
INPUT/OUTPUT
>echo Hello (memasukkan Std Input ke Terminal dan menampilkannya
sbg Std Output)
>echo Hello > hello.txt (memasukkan Std input ke file .txt)
>cat hello.txt (menampilkan isi file .txt ke terminal)
>cat hello.txt > guruh.txt (mengcopy isi hello.txt ke guruh.txt, overwrite)
>cat hello.txt >> guruh.txt (mengcopy isi hello.txt ke guruh.txt, original
content tetap)

Anda mungkin juga menyukai