As I understand it, Torvalds started the kernel and the GNU project (userspace) was started earlier. Linux lacked a good userspace and GNU lacked a complete free (libre) kernel, So they joined forces.
Maintaining an entire operating system is hard, so it turned out better for both parties that they started working together. GNU was working on GNU Hurd (their kernel), but it's been under development since 1990.
In shell languages, $ denotes a variable. I do not think that you meant that you wanted to execute a variable with the same name as your program. I assume you mean you want to execute the program without the ./.
When you execute a program foo in a shell, if you don't specify the path explicitly, it will look in the directories specified in the PATH environment variable for the executable foo. You can see the path variable with echo $PATH. The directories are separated by colons.
If you run the command ./foo, the path is explicitly given so there isn't any need to look in the PATH. The shell knows to execute the foo in the current directory.
Similarly, if you want to execute ls, you can just type that into a shell, since it (most likely) exists in /bin in your system, and that path is in your PATH environment variable. You can also execute it by running /bin/ls, but that gets cumbersome with longer paths and is why shells use the PATH variable.
/r/unixporn
Their sidebar/wiki/etc.
As I understand it, Torvalds started the kernel and the GNU project (userspace) was started earlier. Linux lacked a good userspace and GNU lacked a complete free (libre) kernel, So they joined forces.
Maintaining an entire operating system is hard, so it turned out better for both parties that they started working together. GNU was working on GNU Hurd (their kernel), but it's been under development since 1990.
Said shortcut is a function of the desktop environment, not Linux distribution.
I'm not sure how common it is among those.
In shell languages,
$denotes a variable. I do not think that you meant that you wanted to execute a variable with the same name as your program. I assume you mean you want to execute the program without the./.When you execute a program
fooin a shell, if you don't specify the path explicitly, it will look in the directories specified in the PATH environment variable for the executablefoo. You can see the path variable withecho $PATH. The directories are separated by colons.If you run the command
./foo, the path is explicitly given so there isn't any need to look in the PATH. The shell knows to execute thefooin the current directory.Similarly, if you want to execute
ls, you can just type that into a shell, since it (most likely) exists in/binin your system, and that path is in your PATH environment variable. You can also execute it by running/bin/ls, but that gets cumbersome with longer paths and is why shells use the PATH variable.So your problem is that you got scared?