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


Is there any command in Unix, other than:ls, to list the
files in a directory?
The answer will be highly appreciated...

Answers were Sorted based on User's Feedback



Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / gun0m

"echo *" will list the files inside the dir

Is This Answer Correct ?    62 Yes 2 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / dattatraya

echo *

Is This Answer Correct ?    15 Yes 3 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / pankaj sain

"dir" also works in unix/linux.

Is This Answer Correct ?    17 Yes 9 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / yankee

I think the question was not clear to Anil or Dhina...What i
meant was that i don't want to use 'ls' to list the files...
Is there any other way to do so?

Is This Answer Correct ?    9 Yes 2 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / nik

You can use find command with - type f. It will print all
the files in the current dir recursively.

Is This Answer Correct ?    13 Yes 6 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / chetan

Hi,

echo *.* will list out all the files in a directory.

( all files are assumed to be having some extension)

Is This Answer Correct ?    12 Yes 7 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / ravi

you can use the file command, eg file *. Actually file
command is used to display type of the file given as argument.

Is This Answer Correct ?    3 Yes 0 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / ashish

echo * simply.it lists files and directories in pwd. no hidden files r displayed

Is This Answer Correct ?    4 Yes 1 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / pritish

echo * | tr " " "\n"
this will display all the files in the current directory
sequentially...

you can also use dir command.

Is This Answer Correct ?    4 Yes 1 No

Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be..

Answer / kishore devkate

Hi Yankee,

There are so many commands to display the files in the
present working directory without using ls command, find
the below commands,

echo *
dir
du -sk *

....etc
but we have to think logical how to view the file without
using ls.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

when we installing aix os the ssh installed default?

2 Answers  


How to get the last ten lines of a file using awk utility?

1 Answers   Infosys,


How to convert a hidden file to normal visible file?

8 Answers  


What is the difference between udp and tcp?

2 Answers   HCL, TCS,


Which Command is Used for temprary switch User?

5 Answers   BitWise, IBM,


How to remove a crontab file?

2 Answers  


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

0 Answers  


What are the dos commands?

0 Answers  


What is the difference between cat and more command?

0 Answers  


What does sed command do in unix?

0 Answers  


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

0 Answers  


Why is it called a shebang?

0 Answers  


Categories