Skip to content

u/ajak__

In this archive from Jun 2018 to May 2019

0
posts
81
comments
0
media
277
score

Top comments

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.

23 points

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.

13 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.