what will be the output of ls ~/..

Answer Posted / vikas sharma

ls ~/..

displays the list of /
i.e all folder like usr bin opt var root proc etc..

break this command
ls ~ [list the /root]
cd .. [cd to /]
ls [list of /]

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which unix command lists files/folders in alphabetical order?

620


What are file commands?

656


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

593


What is the behavioural difference between cmp and diff commands?

677


What are the differences among a system call, a library function, and a unix command?

569






What are the commands in UNIX to list the files in a Directory?

620


Explain the steps that a shell follows while processing a command.

683


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

714


What are awk commands?

586


Which command is used to copy files?

558


What is ctrl d?

596


What is s and g in sed command?

561


How can we use grep command in unix?

621


What do chmod command do?

606


How do I run a bash script?

586