A user is currently in the directory:
/home/user/Downloads/
The user then runs the command:
ls ../Documents/
Assuming it exists, which directory's content is displayed?
A. /home/user/Documents/
B. /home/user/Documents/Downloads/
C. /home/user/Downloads/Documents/
D. /Documents/
E. /home/Documents
Answer: A
[root@Linux user]# pwd
/home/user
[root@Linux user]#
[root@Linux user]# find
.
./Documents
./Documents/cool_stuff.txt
./Downloads
./Downloads/file_in_downloads.txt
[root@Linux user]#
[root@Linux user]# cd Downloads/
[root@Linux Downloads]#
[root@Linux Downloads]# pwd
/home/user/Downloads
[root@Linux Downloads]#
[root@Linux Downloads]# ls ../Documents/
cool_stuff.txt
[root@Linux Downloads]#
No comments:
Post a Comment