Opsi h Pada Command ls


[OOT] :
Pernah atau terbiasa menggunakan command/perintah ls? Biasanya saat mengetik ls -la, sistem menampilkan ukuran file dlm “bahasa mesin”. Coba gunakan command ls -lah, sistem akan menampilkannya dlm “bahasa manusia” (misal b, B, K, KB, MB, GB). Opsi h berarti human readable.

example :
[certain-death@my-small-machine ~]$ ls -la
drwxr-xr-x 6 certain-death certain-death 16384 Mar 30 23:05 Unduhan (folder)
-rw-rw-r– 1 certain-death certain-death 338244 Mar 15 23:04 w3m1.png (file)

[certain-death@my-small-machine ~]$ ls -lah
drwxr-xr-x 6 certain-death certain-death 16K Mar 30 23:05 Unduhan (folder)
-rw-rw-r– 1 certain-death certain-death 331K Mar 15 23:04 w3m1.png (file)

sumber :
ketik di terminal man ls

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s