본문 바로가기

Ubuntu/linux Command

Linux Basic Command (cd)

728x90

cd : change directory (현재 디렉토리에서 다른 디렉토리로 작업위치를 변경)

 

용례1 : 

   cd .  :  move to current working directory.

   cd ~ : move to user's home directory from anywhere.

   cd    : move to user's home directory.

   cd ..  : move to parent directory.

   cd -  : move to previous directory

   

 

용례2 : cd [target directory path]

   cd    :  home directory 로 변경

   cd /var/www  : /var/www 로 변경

 

 

용례3 : cd -P [symbolic link]

   -P : change to physical location, not symbolic location

 

 

'Ubuntu > linux Command' 카테고리의 다른 글

Linux Basic Command (find)  (0) 2021.08.05
Linux Basic Command (mkdir/rmdir)  (0) 2021.08.05
Linux Basic Command (echo)  (0) 2021.08.05
Linux Basic Command (clear)  (0) 2021.08.04
Linux Basic Command (which)  (0) 2021.08.04