./ means current directory. Linux never looks for binary files to run in your current directory the way other OSs do, it only looks in the path. That's why you always need to add the ./ if you want to run a binary in your current directory.
On 11 Nov 2020 at 08:48p, Al pondered and said...
./ means current directory. Linux never looks for binary files to
run in your current directory the way other OSs do, it only looks in
the path. That's why you always need to add the ./ if you want to
run a binary in your current directory.
This is a basic how-to learning for me to. Thanks :)
PATH="$PATH:."
This is not the linux, or unix way.. ;)
Best if folks just use the ./ method.
Just don't tell them about: alias dir='ls -h' ;)
sudo apt install sl
Doncha just love 'em trains? :D
On 12 Nov 2020, 12:01p, Warpslide said the following...
Just don't tell them about: alias dir='ls -h' ;)
sudo apt install sl
That way you know when you misspell ls on the command line. ;)
Sysop: | Shaun Ewing |
---|---|
Location: | Blue Mountains, Australia |
Users: | 193 |
Nodes: | 16 (0 / 16) |
Uptime: | 216:38:26 |
Calls: | 137 |
Calls today: | 1 |
Files: | 187,813 |
Messages: | 321,308 |