ディレクトリの移動を行うためのコマンドです。
bash$ help cd
cd: cd [dir]
Change the current directory to DIR.
The variable $HOME is the default DIR.
The variable $CDPATH defines the search path for
the directory containing DIR. Alternative directory names are
separated by a colon (:). A null directory name is the same as
the current directory, i.e. `.'. If DIR begins with a slash (/),
then $CDPATH is not used. If the directory is not found, and the
shell variable `cdable_vars' exists, then try the word as a variable
name. If that variable has a value, then cd to the value of that
variable.
bash$ cd ..
bash$ pwd
/
bash$ cd home
bash$ pwd
/home
bash$ help cd
cd: cd [dir]
Change the current directory to DIR.
The variable $HOME is the default DIR.
The variable $CDPATH defines the search path for
the directory containing DIR. Alternative directory names are
separated by a colon (:). A null directory name is the same as
the current directory, i.e. `.'. If DIR begins with a slash (/),
then $CDPATH is not used. If the directory is not found, and the
shell variable `cdable_vars' exists, then try the word as a variable
name. If that variable has a value, then cd to the value of that
variable.
bash$ cd ..
bash$ pwd
/
bash$ cd home
bash$ pwd
/home
|| パイプ 1つ目のコマンド 実行失敗 2つ目のコマンド 実行
linux コマンド 勉強 linuxのコマンドについてです。
linux コマンド 勉強 pwd
linux コマンド ls
linux コマンド mkdir

コメントする