Where Is Sh in Linux?
Contents the Command Above Tells the Shell “Execute the File Install. Sh That Is Located in the Current Directory. ” If Install. Sh Is Located in the Directory...
Contents
The command above tells the shell “execute the file install.sh that is located in the current directory.” If install.sh is located in the directory myscripts in your home directory, you could run it with the command below.
Where is my .sh file Linux?
2 Answers
- Use the find command for it in your home: find ~ -name script.sh.
- If you didn’t find anything with the above, then use the find command for it on the whole F/S: find / -name script.sh 2>/dev/null. ( 2>/dev/null will avoid unnecessary errors to be displayed) .
- Launch it: /<whatever_the_path_was>/script.sh.
22 февр. 2017 г.
Must Read
What is SH in Linux command?
sh is a command language interpreter that executes commands read from a command line string, the standard input, or a specified file. … Most Unix-like systems contain the file /bin/sh that is either the Bourne shell, or a symbolic link (or hard link) to a compatible shell.