+1 vote
in Linux by
Explain “cd” command in Linux.

1 Answer

0 votes
by

In Linux, when a user needs to change the current directory then “cd” command is input in the shell.

Syntax: $cd

The purpose that can be fulfilled by the current command are –

  1. Redirect to a new directory from the current directory.
  2. Change a directory using absolute path and relative path.

The following commands are under the cd:

  • cd ~:  Redirect to home directory.
  • cd-:  Redirect to previous directory.
  • cd/: Redirect to entire system directory.

Related questions

0 votes
asked Nov 11, 2020 in Linux by sharadyadav1986
+1 vote
asked Feb 18, 2021 in Linux by SakshiSharma
...