what is command like " #(cd unixos; pwd) " tell me OUTPUT

Answers were Sorted based on User's Feedback



what is command like " #(cd unixos; pwd) " tell me OUTPUT..

Answer / pravin virkud

first it will change the directory to unixos and then gives
the output as /<absolute path>/unixos

Is This Answer Correct ?    11 Yes 1 No

what is command like " #(cd unixos; pwd) " tell me OUTPUT..

Answer / ramya

it is two commands runnung one by one.first the cd unixos
command will be executed,then the present working directory
will work.so the output will be showing the presentworking
dirctory that is unixos dir.

Is This Answer Correct ?    4 Yes 1 No

what is command like " #(cd unixos; pwd) " tell me OUTPUT..

Answer / louis

the commands in () will be lanched in a new (sub-)shell
in this shell you will change dir or have an error (no dir),
and have you current dir
all the display of potential error and the working directory
will be displayed in the subshell and thus you will not see
the outputs

Is This Answer Correct ?    1 Yes 0 No

what is command like " #(cd unixos; pwd) " tell me OUTPUT..

Answer / praveen

[root@localhost ~]# (cd unixos;pwd)
o/p:-/root/unixos
[root@localhost ~]#

Is This Answer Correct ?    1 Yes 0 No

what is command like " #(cd unixos; pwd) " tell me OUTPUT..

Answer / bharath

after executing this cmd

1st step if unixos directory is exist,directly it ll display
the like /path/unixos

2nd one if unixos directory is doesnt exist,directly it ll
display the error

Is This Answer Correct ?    0 Yes 0 No

what is command like " #(cd unixos; pwd) " tell me OUTPUT..

Answer / pavan

it will enter into the directory unixos with cd unixos
Then pwd is used fro printing the working directory.
if the directory in home then o/p will be
========/home/unixos/
if it is a sub directory of some directory then o/p will be
=======/home/user/om/unixos/

Is This Answer Correct ?    0 Yes 0 No

what is command like " #(cd unixos; pwd) " tell me OUTPUT..

Answer / ron

o/p will be /../unixos....depending on which filepath u are
in ..like for ex..
if u are in /home nd unixos is any user name directory....
then the o/p will be /home/unixos...
else if unixos is just any directory then o/p will
be /../../unixos...the filesystem path will be shown under
which /unixos is located...........

Is This Answer Correct ?    1 Yes 2 No

what is command like " #(cd unixos; pwd) " tell me OUTPUT..

Answer / t

does it comment the command out?

Is This Answer Correct ?    1 Yes 3 No

what is command like " #(cd unixos; pwd) " tell me OUTPUT..

Answer / ram

When you run this command the output will be the exiting the process which are running in the backgroud.

Is This Answer Correct ?    0 Yes 2 No

what is command like " #(cd unixos; pwd) " tell me OUTPUT..

Answer / akj504

WRONG when I hit this command no output or error is printed.

Is This Answer Correct ?    4 Yes 7 No

Post New Answer

More Linux Commands Interview Questions

Which command is used to terminate a process?

0 Answers  


how do you configure linux system as a router?

5 Answers   HP,


How do I check disk space in linux?

0 Answers  


What is the difference between kill and kill -9 commands?

4 Answers   Sabre,


Explain the linux directory commands along with the description?

0 Answers  






How use more command in linux?

0 Answers  


Is llvm a compiler?

0 Answers  


How do you read ext2/3 file system in windows?

8 Answers   HP,


1. Why "d" is postfix in almost every service name of Linux like httpd, dhcpd? 2. how to restrict su & ssh services for some users? 3. how can we configure a default gateway for 10 n/w cards in a server?

6 Answers  


How do I run whois command?

0 Answers  


What command used for showing user info like Login Name, Canonical Name, Home Directory,Shell etc in Linux?

0 Answers   UGC Corporation,


1.I want to change runlevel but the Users shall not be disturbed?how? 2.Disk have 5gb disk utilization even though files unable to create, why? 3.what are the internal and external command in linux? 4.sar command o/p? 5.how list the open files? 6.what is kernel compiling? 7.How do u See complete configuration in ur system? 8.how will u make a daily updates with cron daily? 9.which port is associated with ttys0? 10.specific some problems linux admin(if u are linux admin)faced and how did u overcome it?

10 Answers   IBM, TCS,


Categories