Contents
To run the .sh file (in Linux and iOS) in command line, just follow these two steps:
- open a terminal (Ctrl+Alt+T), then go in the unzipped folder (using the command cd /your_url)
- run the file with the following command.
To run the .sh file (in Linux and iOS) in command line, just follow these two steps:
- open a terminal (Ctrl+Alt+T), then go in the unzipped folder (using the command cd /your_url)
- run the file with the following command.
The way professionals do it
- Open Applications -> Accessories -> Terminal.
- Find where the .sh file. Use the ls and cd commands. ls will list the files and folders in the current folder. Give it a try: type “ls” and press Enter.
- Run the .sh file. Once you can see for example script1.sh with ls run this: ./script.sh.
Part 2 Creating a Quick Text File
- Type cat > filename.txt into Terminal. You’ll replace “filename” with your preferred text file name (e.g., “sample”).
- Press ↵ Enter .
- Enter your document’s text.
- Press Ctrl + Z .
- Type ls -l filename.txt into Terminal.
- Press ↵ Enter .
How do I run an executable file in Linux?
Executable files
- Open a terminal.
- Browse to the folder where the executable file is stored.
- Type the following command: for any . bin file: sudo chmod +x filename.bin. for any .run file: sudo chmod +x filename.run.
- When asked for, type the required password and press Enter.
How do you execute a file?
To execute a file in other GUI operating systems, a single or double-click will execute the file. To execute a file in MS-DOS and numerous other command line operating systems, type the name of the executable file and press Enter. For example, the file myfile.exe is executed by typing “myfile” at the command prompt.