Is there any command in Unix, other than:ls, to list the
files in a directory?
The answer will be highly appreciated...
Answer Posted / 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 |
Post New Answer View All Answers
Explain ‘system calls’ with respect to unix commands?
What are reported commands?
What is the use of the command 'ls -x chapter[1-5]' ?
Enlist some filename manipulation commands in unix.
What is the size of time_t?
Who command in unix?
What is the comma to show the space allocation of files?
What is a bash command?
What is grep short for?
Why is grep called grep?
What are the differences among a system call, a library function, and a unix command?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
How does the system know where one command ends and another begins?
Which unix command lists files/folders in alphabetical order?
What does pipe () return?