Sunday, August 2, 2009

Two UNIX command with appropriate option to list all hidden files ?

I know one is ls -a, what is the other command to list the hidden file in Unix?





many thk

Two UNIX command with appropriate option to list all hidden files ?
There are plenty of variations of "ls" which will work.


One is to simply specify the "." files, and then throw


in the "-d" option so that you don't get a listing of


files in the parent directory (because of ".."):





ls -d .*





Similarly, though, you can list all "hidden" files with


a simple "echo" command using the same idea:





echo .*
Reply:ls -la should "list all"





ls --help should return you a list of all extenstions for ls
Reply:This may work for you as well:





find . -print





Of course, that will list all files from current directory and below.
Reply:try ll
Reply:I don't know of another COMMAND, but the capital A option will also list hidden files in ls ( "ls -A" ). Unlike the lowercase option it does not list the directory "names" "." and ".."

flower shops

No comments:

Post a Comment