Which command is used to list all the files in your current directory including hidden Mcq?

Last update on August 19 2022 21:50:34 [UTC/GMT +8 hours]

Introduction

In this session, we have covered an overview of the most common commands to work with directories : pwd, cd, ls, mkdir, rmdir. These commands are available on any Linux [or Unix] system. We have also discussed the absolute and relative paths and path completion in the bash shell.

pwd

Displays the full path-name for the current directory. Open a command line interface [like gnome-terminal, konsole, xterm, or a tty] and type pwd.

[email protected]:~$ pwd /home/datasoft

cd

You can change your current directory [working directory] with the cd command.

[email protected]:~$ cd /etc [email protected]:/etc$ pwd /etc [email protected]:/etc$ cd /bin [email protected]:/bin$ pwd /bin [email protected]:/bin$ cd /home/datasoft/ [email protected]:~$ pwd /home/datasoft

cd ~

Chủ Đề