find out which file descriptors share the same “open file description”
If I do (in a Bourne-like shell):
If I do (in a Bourne-like shell):
In Windows, if I wanted to find a string across all files in all subdirectories, I would do something like
I want to cp aaa/deep/sea/blob.psd to bbb/deep/sea/blob.psd
Using sed, how do I search for a line ending with foo and then edit the next line if it starts with #bar?
In bash you can use exec -a and in zsh you can alternatively also set ARGV0 to execute a program with a certain zeroth argument but is there also a POSIX way of doing so?
GNOME reads ~/.profile upon login. When I change something in .profile (for example LC_MESSAGES) I want gnome to reread the .profile file without logging out and back in. In bash I can tell bash to source .profile. How can I do that for the running GNOME session?
I am trying to feed Directory names into a for loop. My code is as follows:
I want to use i3status to display my CPU-Core temperatures (haswell i7). However the setting:
Is there a convenient way to convert the output of the *nix command “tree” to JSON format?
I know what should be the difference between su and su -, but in my system (Debian) for example PATH is the same: