Useful Commandline Commands on Unix
5,624
Solution 1
Try commandlinefu.com.
Solution 2
'screen' - allows for detachable, re-attachable command line sessions. Made extra shiny with screen-profiles (default in Ubuntu 9.04), and byobu in 10.04
Solution 3
Slight dupe:
Solution 4
find
. Extremely useful in combination with xargs
.
Solution 5
Using 'ack' as a replacement for grep/find+xargs+grep: www.betterthangrep.com
Related videos on Youtube
Author by
Álvaro
Updated on September 17, 2022Comments
-
Álvaro over 1 year
As there is a windows version of this question, I decided to open a community wiki for the same question under unix, linux, and the like.
I'll be updating this list with the answers:
- bash: exec 3<> /dev/tcp/localhost/80 # Redirect to port 80 of localhost
- find: search for files in a directory hierarchy
- htop: interactive process viewer, similar to top
- xargs: build and execute command lines from standard input
- tmux: detachable, re-attachable command line sessions
- apropo: find relevant man pages
- vmstat: See the state of your system
Websites:
- commandlinefu.com
- serverfault.com
Keyboard shortcuts: - Ctrl T (BSD specific): send SIGINFO to a running program - Magic SesRq key (Linux specific): en.wikipedia.org/wiki/Magic_SysRq_key
-
Gareth about 15 yearsSee @Andrew Hodgson's response.
-
Álvaro almost 15 yearsYeah, actually I see it.
-
Álvaro about 15 yearsyeah, I didn't find it
-
Matthew Flaschen about 15 yearsBut also on its own.
-
BJladu4 over 14 yearsThe use of
-exec
infind
makesxargs
useless most of the time. -
lunchmeat317 over 12 yearsI know that bash uses emacs style by default, but is it actually possible to have it use vi commands? I'd love that, but I'm not sure how it'd work. (Edit: I just realized how old this is....but ah well. Legit question.)