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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to find whether the system is 32 bit or 64 bit?

639


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

695


What do chown command do?

541


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1771


What happens when we execute a unix command?

608






What are bash commands?

606


How do I run a whois command?

613


What is command statement?

554


Which command can you use to find the currently running process in unix server?

596


What is s and g in sed command?

567


What does sed command do in unix?

578


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

630


What is updatedb?

594


What is the size of time_t?

670


What does 'mkdir' command do in UNIX?

670