Development/Linux

[Linux] 상대경로와 절대경로 (Relative path, Absolute path)

oneonlee 2022. 4. 17. 15:36
반응형

relative path, absolute path (상대경로, 절대경로)

If the path starts with /, it is an absolute path; otherwise it is a relative path.

   cd  /home/linuxer1/12345   -- go to /home/linuxer1/12345
   cd  12345                  -- go to directory 12345 in the current directory
                                 if the current location is /home/linuxer1,
                                     go to /home/linuxer1/12345
                                 if the current location is /bin
                                     go to /bin/12345

If the destination directory does not exist, the system issues an error.

반응형