ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Operating Systems  >>  Unix  >>  Unix Commands
 
 


 

 
 Unix Commands interview questions  Unix Commands Interview Questions
 Unix Threads interview questions  Unix Threads Interview Questions
 Unix IPC interview questions  Unix IPC Interview Questions
 Unix Socket Programming interview questions  Unix Socket Programming Interview Questions
 Unix System Calls interview questions  Unix System Calls Interview Questions
 Unix AllOther interview questions  Unix AllOther Interview Questions
Question
what will be the output of ls ~/..
 Question Submitted By :: Rukhsar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what will be the output of ls ~/..
Answer
# 1
It will list the contents of /
 
Is This Answer Correct ?    6 Yes 9 No
Deepu Kalavampara
 
  Re: what will be the output of ls ~/..
Answer
# 2
it will list the contents of home directory
 
Is This Answer Correct ?    13 Yes 9 No
Munni155
 
 
 
  Re: what will be the output of ls ~/..
Answer
# 3
It will show the content of the /home directory
 
Is This Answer Correct ?    8 Yes 6 No
Dinesh
 
  Re: what will be the output of ls ~/..
Answer
# 4
it will show the list of files&directories (say contents) in
the current directory which u r working....
 
Is This Answer Correct ?    6 Yes 6 No
Guptamurali
 
  Re: what will be the output of ls ~/..
Answer
# 5
it will shows all users in serversystem
 
Is This Answer Correct ?    3 Yes 3 No
Naveen
 
  Re: what will be the output of ls ~/..
Answer
# 6
It will show the shell as well as the the path from home
directory to the current directory.
eg: say we are in diretory swaroopa and swaroopa is there in
the home directory here is the o/p
bash: /home/swaroopa/..: is a directory

Swaroopa kalgi
 
Is This Answer Correct ?    0 Yes 2 No
Swaroopa
 
  Re: what will be the output of ls ~/..
Answer
# 7
It will list the files and directories of the current user 
parent's login directory

i.e. 
If the current user smith login directory is "/home/smith",
then the parent's login directory is "/home"

In this example, the files and directories in "/home" are 
listed.
 
Is This Answer Correct ?    4 Yes 2 No
Phil
 
  Re: what will be the output of ls ~/..
Answer
# 8
It will list the files and directories of the current user 
parent's login directory

i.e. 
If the current user smith login directory is "/home/smith",
then the parent's login directory is "/home"

In this example, the files and directories in "/home" are 
listed.
 
Is This Answer Correct ?    1 Yes 2 No
Phil
 
  Re: what will be the output of ls ~/..
Answer
# 9
It prints the directories and file which is in your parent 
directory.
If u are logged in root ..it will show contents of / 
directory. 

If u are logged in /home/sandesh ....it will show contents 
of /home directory . 

~/ means the user login directory.
 
Is This Answer Correct ?    0 Yes 2 No
Sandesh
 
  Re: what will be the output of ls ~/..
Answer
# 10
it display the home directory content.
 
Is This Answer Correct ?    1 Yes 1 No
Sugumar
 
  Re: what will be the output of ls ~/..
Answer
# 11
It will simple list of files and dir.s ( contents ) of the
Root directory i.e., / .
 
Is This Answer Correct ?    1 Yes 1 No
Ravikiran
 
  Re: what will be the output of ls ~/..
Answer
# 12
it will display all the files and directories in the parent 
of the current directory.
 
Is This Answer Correct ?    2 Yes 1 No
Nagarjuna
 
  Re: what will be the output of ls ~/..
Answer
# 13
it will list all the contents of the root directory.
doesn't matter in which section of the file or directory 
you are working in whenever you will give this command it 
will always list the contents of the root directory.
 
Is This Answer Correct ?    1 Yes 1 No
Varun
 

 
 
 
Other Unix Commands Interview Questions
 
  Question Asked @ Answers
 
what are filters?  2
What do you mean by zambie process?  4
Through which command will redirect output to bOth screen and files at the same time?  2
How to redirect standard error to a file?  1
What is the difference between Shell Programming and Shell scripting? Wipro4
How do you remove a crontab file?  4
what is the significance of "su" command?  2
distinguish between interrupts and exceptions? Infosys2
what is the command to find out which shell you are running?  5
Give a regular expression that finds two things, try to come up with regular expressions that find each individually using "egrep" command?  4
what is the use of "fg" command ? PSU2
How to get a particular string as your prompt ? Give syntax of that command?  2
what is the function of grep command?  2
What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands? Deloitte4
distinguish between user mode and kernel mode? Infosys3
distinguish between user mode and kernel mode? Infosys1
How to create hardlinks and softlinks on files?  2
Explain iostat, vmstat and netstat.  2
How to remove a crontab file?  1
Write a command to find all of the files which have been accessed within the last 30 days. Google3
 
For more Unix Commands Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com