CentOS,Ubuntu,Fedora,Debian,Linux,KVM,Virtualization

CentOS,Ubuntu,Fedora,Debian,Linux,KVM,Virtualization

CentOS,Ubuntu,Fedora,Debian,Linux,KVM,Virtualization

cd
10/08/2018 | 78
cd - change directory
CommandFunction
cdreturns you to your login directory
cd ~also returns you to your login directory
cd /takes you to the entire system's root directory
cd /roottakes you to the home directory of the root, or superuser, account created at installation
cd /hometakes you to the home directory, where user login directories are usually stored
cd ..moves you up one directory
cd ~otherusertakes you to otheruser's login directory, if otheruser has given you permission
cd /dir1/subdirfooregardless of which directory you are in, this absolute path would take you straight to subdirfoo, a subdirectory of dir1
cd .https://serverpro.info/.https://serverpro.info/dir3/X11this relative path would take you up two directories to root, then to dir3, then to the X11 directory.