Start some "green software" command lines in linux

Source: Internet
Author: User
For more information about how to start some "green software" command lines in linux-Linux general technology-Linux programming and kernel, see the following. A few days ago, after decompression, there was no way to directly use the software command line in linux.
At the beginning, I am also preparing to create the same file ln under/usr/bin to start the program in the decompressed folder. ln seems to be unable to boast of the device
It's silly to think about it. It's the right thing to put the path into the environment variable.

Modify environment variables:
Open the terminal:
I decompress the file to/home/leo/Filezilla3 /.
Add this path to the Environment Variable
PATH = "$ PATH:/home/leo/localsoftware/FileZilla3/bin"
Export PATH

Okay.

Check the current environment variables.
$ PATH
Appears
Bash:/usr/local/bin:/usr/games:/home/leo/localsoftware/FileZilla3:

Done!

In fact, this is only a temporary change to the environment variable.
After exiting the terminal, it will return to the initial environment variable.

Fundamental Solution

Vim/etc/profile

Extract text:

If ["'id-U'"-eq 0]; then
PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: /home/leo/localsoftware/FileZilla3/bin"
Else
PATH = "/usr/local/bin:/usr/games:/home/leo/localsoftware/FileZilla3/bin"

The second row is root and the variable to be added is added.
The fourth row contains the user, and the variable to be added is added.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.