Thursday, August 25, 2016

Execute command ls -la from ll


Execute command ls -la from shortcut:

Step 1: 
Verify shortcut exists 
$ ll
-bash: ll: command not found

Step 2: 
Create shortcut for command ll
$ alias ll="ls -la" 

Step 3: 
Execute command ll
$ ll

total 0
drwxrwxr-x@    11    root    146140024    374    Aug 23 12:31    . 

drwxr+xr-x+    172    root    146140024    5848    Aug 23 12:31    ..