How Do I Run a File in a Different Directory in Linux?
Contents How Do I Run a Linux Script in Another Directory? If You Make the Scrip Executable with Chmod 755 to Run It You Only Need to Type the Path to the...
Contents
How do I run a Linux script in another directory?
If you make the scrip executable with chmod 755 <nameofscript> to run it you only need to type the path to the script. When you see ./script being used it telling the shell that the script is located on the same directory you are executing it. To use full path you type sh /home/user/scripts/someScript .
How do you access a file in a directory in Linux?
File & Directory Commands
- To navigate into the root directory, use “cd /”
- To navigate to your home directory, use “cd” or “cd ~”
- To navigate up one directory level, use “cd ..”
- To navigate to the previous directory (or back), use “cd -“
2 июл. 2016 г.