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...

How to identify whether a file is normal file or directory?

Answer Posted / srinath.p

$ls -l filename/directoryname
if the first digit is - then it is file,if it is d then it
is directory

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the unix command to find how many days the server has been up.

1206


Write a command that will display files in the current directory, in a colored, long format.

1273


What is the use of find command in unix?

1209


Enumerate some of the most commonly used network commands in unix?

1215


What is {} in find command?

1154


Write a command to display a file’s contents in various formats?

1246


How do you grep a case insensitive?

1112


What is unix command line?

1336


What does #!/ Bin sh do?

1115


Are you in or at the office?

1171


What is unix command?

1320


How do you grep recursively?

1152


How do I clear my terminal history?

1230


What does the command '$ls | wc –l > file1' do?

1296


How do you repeat a command in terminal?

1288