How to open software in linux

王林
Release: 2019-12-26 14:00:33
Original
13322 people have browsed it

How to open software in linux

First create a folder to store the script file you wrote.

How to open software in linux

Find the path of the executable program to be opened. Here we take Firefox as an example. There is the Firefox execution program under /usr/bin.

How to open software in linux

Enter cd /usr/local/myShell to enter the folder just created.

Free video tutorial learning: linux video tutorial

Then enter sudo touch openFireFox.sh to create the script file.

How to open software in linux

Enter sudo vi openFireFox.sh and use vi to edit the file.

How to open software in linux

Press i to enter the insert state.

How to open software in linux

Enter

#!/bin/sh
cd /usr/bin
./firefox
Copy after login

and then press the Esc key to exit the editing state. Press :wq and then press Enter to save the file and exit.

How to open software in linux

How to open software in linux

After exiting, enter sudo chmod 777 ./openFireox.sh to modify the file permissions.

Then enter ./openFireFox.sh to open the Firefox browser.

How to open software in linux

If you want the program to be executed in the background, you can press ctrl C in the terminal to exit the program and re-enter ./openFireFox.sh &, this way Programs can be run in the background and the terminal can continue to be used.

How to open software in linux

More related articles and tutorials are recommended: linux tutorial

The above is the detailed content of How to open software in linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template