You can use this to move up one level in the directory tree. The double period or “double dot” (.) represents the parent directory of your current one. This way, it won’t search the directories in your path for matching executable or script. This tells Bash to look in the current directory for the script.sh file. For example, if you want to run a script from the current directory, you would call it like this. You can also use the period in commands to represent the path to your current directory. You see it in directory listings if you use the -a (all) option with ls. For example, if you’re somewhere in the file system that’s not under your home folder and want to change to the archive directory in your work directory, use the tilde to do it: cd ~/work/archiveĪ period (.) represents the current directory. You can also use this command with relative paths.
0 Comments
Leave a Reply. |