Linux Shortcut #1

Beberapa shortcut yang berguna (dan baru tahu sekarang :oops:):

Shortcut Result
cd Changes the working directory to your home directory.
cd - Changes the working directory to the previous working directory.
cd ~username Changes the working directory to the home directory of username. For example, cd ~bob changes the directory to the home directory of user bob.

Dan beberapa opsi/argumen dari perintah ls yang umum dipakai:

Option Long Option Description
-a --all List all files, even those with names that begin with a period, which are normally not listed (i.e., hidden).
-d --directory Ordinarily, if a directory is specified, ls will list the contents of the directory, not the directory itself. Use this option in conjunction with the -l option to see details about the directory rather than its contents.
-F --classify</code This option will append an indicator character to the end of each listed name (for example, a forward slash if the name is a directory).
-h --human-readable In long format listings, display file sizes in human-readable format rather than in bytes.
-l Display results in long format.
-r --reverse Display the results in reverse order. Normally, ls displays its results in ascending alphabetical order.
-S Sort results by file size.
-t Sort by modification time.

***

Sumber: The Linux Command Line (William E. Shotts, Jr.)

Published by Eric Gunawan

Happiness Engineer. WordPress Ambassador. Remote Worker. Soccer News Follower. Movie Lover. Proud Father. Lucky Husband.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: