environment variable
Gene Heskett
gheskett at shentel.net
Sat Jun 24 18:39:30 EDT 2017
On Saturday 24 June 2017 16:49:25 Smith wrote:
> Hello to all,
> I wanted to ask you how I could delete a line of an environment
> variable (PATH)
>
> ~/Scaricati/pycharm-2017.1.4/bin$ echo $PATH | sed s/:/'\n'/g
> /usr/local/sbin
> /usr/local/bin
> /usr/sbin
> /usr/bin
> /sbin
> /bin
> /usr/games
> /usr/local/games
> /snap/bin
> /path/to/my/program ---> linea da eliminare
> /home/dbruno/Scaricati/pycharm-2017.1
>
> Do I unset PATH delete all content?
> I have not tried yet
>
> I downloaded pycharm and wanted to make it executable from the command
> line without accessing the bin folder and launch the bash script:
>
> dbruno at dbruno:~/Scaricati/pycharm-2017.1.4$ ls -la
> total 48
> drwxrwxr-x 10 dbruno dbruno 4096 giu 24 10:23 .
> drwxr-xr-x 18 dbruno dbruno 4096 giu 24 10:23 ..
> drwxrwxr-x 2 dbruno dbruno 4096 giu 24 10:25 bin
> -rw-r--r-- 1 dbruno dbruno 14 giu 13 14:48 build.txt
> drwxrwxr-x 2 dbruno dbruno 4096 giu 24 10:23 debug-eggs
> drwxrwxr-x 2 dbruno dbruno 4096 giu 24 10:23 help
> drwxrwxr-x 17 dbruno dbruno 4096 giu 24 10:23 helpers
> -rw-r--r-- 1 dbruno dbruno 1887 giu 13 14:48 Install-Linux-tar.txt
> drwxrwxr-x 4 dbruno dbruno 4096 giu 24 10:23 jre64
> drwxrwxr-x 4 dbruno dbruno 4096 giu 24 10:23 lib
> drwxrwxr-x 2 dbruno dbruno 4096 giu 24 10:23 license
> drwxrwxr-x 52 dbruno dbruno 4096 giu 24 10:23 plugin
>
> :~/Scaricati/pycharm-2017.1.4/bin$ ls -la
>
> total 7120
> drwxrwxr-x 2 dbruno dbruno 4096 giu 24 10:25 .
> drwxrwxr-x 10 dbruno dbruno 4096 giu 24 10:23 ..
> -rw-rw-r-- 1 dbruno dbruno 0 giu 24 20:18 0M?+
> -rwxr-xr-x 1 dbruno dbruno 221 giu 13 14:48 format.sh
> -rwxr-xr-x 1 dbruno dbruno 23072 giu 13 14:48 fsnotifier
> -rwxr-xr-x 1 dbruno dbruno 29648 giu 13 14:48 fsnotifier64
> -rwxr-xr-x 1 dbruno dbruno 26453 giu 13 14:48 fsnotifier-arm
> -rw-r--r-- 1 dbruno dbruno 10804 giu 13 14:48 idea.properties
> -rwxr-xr-x 1 dbruno dbruno 272 giu 13 14:48 inspect.sh
> -rw-r--r-- 1 dbruno dbruno 3449944 giu 13 14:48
> libyjpagent-linux64.so -rw-r--r-- 1 dbruno dbruno 3679036 giu 13
> 14:48 libyjpagent-linux.so -rw-r--r-- 1 dbruno dbruno 2236 giu 13
> 14:48 log.xml
> -rwxr-xr-x 1 dbruno dbruno 410 giu 13 14:48 printenv.py
> -rw-r--r-- 1 dbruno dbruno 329 giu 13 14:48 pycharm64.vmoptions
> -rw-r--r-- 1 dbruno dbruno 10281 giu 13 14:48 pycharm.png
> -rwxr-xr-x 1 dbruno dbruno 6860 giu 13 14:48 pycharm.sh
> -rw-r--r-- 1 dbruno dbruno 337 giu 13 14:48 pycharm.vmoptions
> -rwxr-xr-x 1 dbruno dbruno 590 giu 13 14:48 restart.py
>
> You can help me ?
>
> Thank you
export PATH=
but be prepared to type the full path to anything you want to run. It a
PITA, or a cast iron bitch or whatever definition fits.
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
More information about the Python-list
mailing list