Is there any command in Unix, other than:ls, to list the
files in a directory?
The answer will be highly appreciated...
Answers were Sorted based on User's Feedback
Let the directory is /a
find /a -type f -print
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / madhu
du command will list all the files in a directory with the
space used.
| Is This Answer Correct ? | 5 Yes | 4 No |
Answer / guru
Hi All,
I have tried "ll" in HP-UX. It is as good as ls. But, I am
not sure how handy it is with Solatis & Linux.
Thanks,
Guru
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / niranjan
To display filenames in direcory
1) ls -> basic command
2) echo *
3) ll -> in few unix versions u'll find this
To display only direcories :-
ls -lrt|grep ^d -> useful command if u want to display only directories:):):)
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / yankee
Hi Dhina,
I know that my question is a bit strange, but believe me, i
too was as confused as u r seeing this question...LOL
Anywayz just wanted to know how can one add alias
for ls in linux boot files? Tell me the steps in details
plz.
Will check it out at my end if u answer this.
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / rocky
find . -name *.* -print
this will print all files in the current directory. For any
other directory give the full path on place of .(dot)
| Is This Answer Correct ? | 0 Yes | 0 No |
1-how will you display a file whose name is starting with '- '? 2-how will you add a patten at end of every line in vi editor?
What is Unix, and how does it differ from other operating systems?
how to remotely move a file ??? that mean how to move a file one machine to another machine ???
How do you stop a running process?
What do know about tee command?
What is merge command in unix?
how to find largest file?
14 Answers HCL, Microsoft, Thomson Reuters,
What Is the command to change a file's creation time. means one file is created at the time 15:19 then time should br changed to 14:14
What is the use of awk command in unix?
Why is it called a shebang?
How do you find files in Unix?
How can you see the command line history?