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
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 |
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 |
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 |
Answer / ashish
echo * simply.it lists files and directories in pwd. no hidden files r displayed
| Is This Answer Correct ? | 4 Yes | 1 No |
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 |
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 |
what do you understand by 'building block primitive'?
How does the user view the contents of a text file in UNIX?
How do you find path of a directory? Give its syntax.
What are the commands in UNIX to list the files in a Directory?
How do I find previous commands in unix?
how will you convert a general file to a hidden file?
What UNIX command will control the default file permissions when files are created?
Write a grep (or grep) command that selects the lines from a file that have exactly three characters.
what does the command 'wc' do?
Sorry to all Technical person for mistake of Question. Now i am post currect question Why copied file permission is changed in destination. When i give all permission i.e 777 to file and copy that to other location in destination the permission is 755. But if give permission 555 in destination that file permission is 555 and if give permission 444 to file after copy in destination the file permission is 444. These all are happening in normal user. How the umask value is calculate here really i am not understand. Please write the proper answer. Thanks in Advance
What is the pipe command?
How to use grep command to list find the records of a file containing 10 different strings?