Hot answers tagged command-line
With the zsh shell, that's typically done with globbing qualifiers: mv -- *(.om[1,10]) /dir moves the 10 newest non-hidden regular files to /dir. With the completion system (enabled by running compinstall), you can also tell zsh to expand that list and select which ones to expand using Alt-A.
You can do: sudo !! Another good one is alt ., to insert the last parameter of the previous command
Sorting, scrolling a bunch, manually selecting a range and punching holes in the range is natural in a GUI. One can argue that it is also tedious and error prone. At the CLI (i.e. a unix shell) you have more powerful means. When sorting using the filename as key you can use globbing to select a range, e.g. $ rm someprefix*mid*.[0-9] In a sorted list ...
There are some basic bash shortcuts you should know... Ctrl + A Go to the beginning of the line you are currently typing on Ctrl + E Go to the end of the line you are currently typing on Ctrl + L Clears the Screen. Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line. Ctrl + H Same as ...
Only top voted, non community-wiki answers of a minimum length are eligible