what is command like " #(cd unixos; pwd) " tell me OUTPUT
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Answer / praveen
[root@localhost ~]# (cd unixos;pwd)
o/p:-/root/unixos
[root@localhost ~]#
Is This Answer Correct ? | 1 Yes | 0 No |
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 |
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 |
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 |
Answer / akj504
WRONG when I hit this command no output or error is printed.
Is This Answer Correct ? | 4 Yes | 7 No |
Is llvm a virtual machine?
What is grep command in linux with examples?
What is gnu in linux?
Explain about document formatting?
What is 9 in kill?
What is $@ in bash?
How you will uncompress the file?
ls -l ls -t ls -r ls -a ls -ltr ls -u grep error file.txt grep -v error file.txt perl prg.pl | ./file.txt tee chmod +x chmod -x chmod =x ps bg date +%y%m%d ?
What does chmod 755 do?
What Command used to lock user password?
What is the command can be run to remove all the rules in an iptable table?
You are required to restore the file memo.ben. It was backed up in the tar file MyBackup.tar. Which command would you use to do it?