![]() ![]() The tilde “~” is special character which expands to the home directory of current user (exactly: to what is set in the environment variable “$HOME”). The same effect would have “cd /home/rhizome/Downloads”, which is an absolute path, starting with “/”. So, given you are in “/home”, and your destination folder is “Downloads”, you need to say “cd rhizome/Downloads”, which is a relative path. Where you are you can (in antiX) always take from the beginning of the command line. Relative paths start relative to a given starting point in directory tree. Otherwise you have to prepend the path to where the destination folder is located, either relative or absolute. In short, If you want to say “cd Downloads” you need to be in the parent folder of “Downloads”. Relative paths start from any point where you want (or where you just are) in directotry tree. An absolute path starts always in the directory root “/”. You need to distinguish between relative and absolute paths. This reply was modified 1 year, 9 months ago by Xecure. What do you see on your system when launching the terminal? When you launch the terminal you usually already are set in /home/user-name/ = $HOME = ~ If you want to navigate to a folder outside the current path you are navigating in, you need to use absolute paths (example1 and 2). Using relative paths means you want to go to a directory inside the current one you are in the terminal (example3). No matter where you are in the terminal, you can navigate to the desired home directory using $HOME or ~Įxample1: non-root user right now in /media and I want to go to my Downloads folderĮxample2: non-root user, that was navigating in the terminal the /home/user/Downloads/ directory and now wants to go back to their Documents folderĮxample3: non-root user that just launched the terminal (should be in ~ directory) and wants to navigate to the Desktop folder ![]() Maybe you were always using the terminal from your user directory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |