Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are file commands?

1243


How do I use grep to search for a file?

1069


Which command should you use to find the remaining disk space in unix server?

1320


What is the nmap command?

1199


What command will change your prompt to myprompt?

1336


What does awk stand for?

1095


What are bash commands?

1177


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

1231


What are the unix commands?

1106


What is the comma to show the space allocation of files?

1099


How do I search a whole word in vim?

1192


Why is shebang used?

1143


Using unix command how to display no of records in oracle?

1171


What does touch command do in unix?

1441


What is a bash command?

1193