what is the command to list files in a directory in UNIX?
Answer Posted / siva
Try this command
ls -lrt | grep "^-" - for list the only files
ls -lrt | grep "^d" - for list the only directory's
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Can you explain a little bit about command substitution?
Name the various commands that are used for the user information in unix.
What are the commands in UNIX to list the files in a Directory?
Which command will print your home directory on screen?
What is the use of the tee command?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
What is the unix command to confirm a remote host is alive or not?
What is command statement?
What is grep r?
Describe the usage and functionality of the command rm –r * in unix?
Which command is used to delete all files in the current directory and all its sub-directories?
What is the use of cut command in unix?
What does this command do,"$more readme.txt“?
What is the general format of unix command syntax?
Which command can you use to find the currently running process in unix server?