what is the command to list files in a directory in UNIX?

Answer Posted / peeyush

ls -l |grep '^-'

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run a whois command?

809


Explain ‘library functions’ with respect to unix commands?

798


What are file commands?

844


What is the command to find maximum memory taking process on the server?

872


What is the behavioural difference between cmp and diff commands?

861






What is merge command in unix?

1130


What is the command to find hidden files in the current directory?

818


What does the “echo” command do?

826


Which command is used to delete all files in the current directory and all its sub-directories?

925


What does this command do,"$more readme.txt“?

850


What does the command ' $who | sort –logfile > newfile' do?

1007


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

836


What is grep command in unix with examples?

809


What are filter commands in unix?

759


How do I run a bash script?

798