commands I’ve never seen or don’t know about. There’s almost nothing in standard POSIX that falls in this category, and a lot of OSS that does. E.g., I use to always reach for fuser until I realized it’s not a base install on many distros, so I switched to lsof which is is, and is also both more powerful and harder to use.
commands I’ve seen before but use so infrequently I forget they exist, or what they’re called. This is sadly a larger set than I’d like.
Fantastic list. I just want add one to this sublist. I use these often:
Find files tips
find . -maxdepth 1 -type f -printf '%f\n'
-printf ‘%f\n’: This is a function to print in a formatted manner, typically used in C or other languages. %f means here print the filename only, without directory or slashes. And add a newline off course, but you could also print it by space enclosed between quotes: “%f” I prefer this over executing separate echo process.
-type f: This will limit the output depending on the filetype you define. Here f means files only. This can have multiple types too, in example directories or executables.
-maxdepth 1: Do not search subdirectories, only look in current directory like ls does. You could specify more depth too. And there is even -mindepth 2 in example, if you want to skip some top level directories and only search somewhere deep. This makes sense if you have organized structure of directories in example.
threaded - newest
Actually yeah, those are.
Nice.
…and renice.
Looks like the site is down or blocked in my country.
Could anyone please be so nice and copy paste those commands here?
It is useful to detect permissions errors, for example when configuring a web server.
You may need to install the following: sudo apt-get install diction texlive-extra-utils.
# Even better (suggested by xearl in Hacker news):
If the program doesn’t need any interaction:
If you need to enter some input manually and then want to leave:
Thank you very much!
You the best.
Most people will run a post 2.6 kernel, so prlimit will be available as an interesting alternative to ulimit.
The most interesting command for the Linux shell is known as Barmin patch.
This is a good list.
There are three kinds of Linux commands:
fuser
until I realized it’s not a base install on many distros, so I switched tolsof
which is is, and is also both more powerful and harder to use.Some of these in this list are the third kind.
Fantastic list. I just want add one to this sublist. I use these often:
-printf ‘%f\n’
: This is a function to print in a formatted manner, typically used in C or other languages.%f
means here print the filename only, without directory or slashes. And add a newline off course, but you could also print it by space enclosed between quotes:“%f”
I prefer this over executing separateecho
process.-type f
: This will limit the output depending on the filetype you define. Heref
means files only. This can have multiple types too, in example directories or executables.-maxdepth 1
: Do not search subdirectories, only look in current directory likels
does. You could specify more depth too. And there is even-mindepth 2
in example, if you want to skip some top level directories and only search somewhere deep. This makes sense if you have organized structure of directories in example.