Monday, January 5, 2015

Ubuntu Special Command

ls: command options

Option      Action


-a list hidden files -d list the name of the current directory -F show directories with a trailing '/' executable files with a trailing '*' -g show group ownership of file in long listing -i print the inode number of each file -l long listing giving details about files and directories -R list all subdirectories encountered -t sort by time modified instead of name 
 
Example:
 
git@rizvi-pc:~$ ls -a -l
total 36
drwxr-xr-x 3 git  git  4096 Jan  5 16:31 .
drwxr-xr-x 4 root root 4096 Jan  5 16:27 ..
-rw-r--r-- 1 git  git   220 Jan  5 16:27 .bash_logout
-rw-r--r-- 1 git  git  3486 Jan  5 16:27 .bashrc
-rw-r--r-- 1 git  git  8445 Jan  5 16:27 examples.desktop
-rw-r--r-- 1 git  git   675 Jan  5 16:27 .profile
drwxrwxr-x 2 git  git  4096 Jan  5 16:31 .rizvissh
 

No comments:

Post a Comment