Timeline for run a python script in terminal without the python command
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 16, 2018 at 17:23 | comment | added | Martijn Pieters |
@Arcones: ~username doesn't have anything to do with the current user, so the whoami output is irrelevant. Most Linux systems have a bin user, whose homedirectory is set to /bin, see the Linux Standards Base.
|
|
| May 16, 2018 at 17:02 | comment | added | Arcones | great and detailed answer. however, I don't get why I am having this: ➜ ~ cd ~bin ➜ ~bin pwd /bin ➜ ~bin whoami arcones I got the same in two different linux machines, any idea why? | |
| May 16, 2018 at 8:16 | comment | added | Martijn Pieters |
Absolutely. ~bin/ is something completely different, that’s the home directory of the user named bin, while ~/bin/ is the bin subdirectory of the home directory of the current user. The latter is a common per-user directory to add to the PATH environment variable.
|
|
| May 16, 2018 at 7:47 | comment | added | Arcones | the cd ~/bin/ is correct? shouldn't it be cd ~bin/ without the first slash? | |
| Jul 30, 2014 at 18:23 | vote | accept | Alpagut | ||
| Mar 23, 2013 at 14:44 | vote | accept | Alpagut | ||
| Jul 30, 2014 at 18:23 | |||||
| Mar 23, 2013 at 14:31 | history | answered | Martijn Pieters | CC BY-SA 3.0 |