All cards so far
Every card that has already been the command of the day, newest first.
- Command of the day No. 25 sort | uniq -c | sort -rn Counts how often each line occurs, most common first.
- Command of the day No. 24 find -type d Lists only folders, no files.
- Command of the day No. 23 find -name Finds files by name in every subfolder.
- Command of the day No. 22 grep -E '^(ERROR|WARN)' Finds lines that start with ERROR or WARN.
- Command of the day No. 21 grep -r Searches every file in a folder and below.
- Command of the day No. 20 grep -v Shows every line that does not match.
- Command of the day No. 19 grep -n Finds lines and shows their line numbers.
- Command of the day No. 18 grep -i Finds lines no matter if upper or lower case.
- Command of the day No. 17 wc -l Counts the lines of a file.
- Command of the day No. 16 less and / Reads long files page by page and searches them.
- Command of the day No. 15 tail -n Shows only the last lines of a file.
- Command of the day No. 14 head -n Shows only the first lines of a file.
- Command of the day No. 13 cat -n Shows a file with numbered lines.
- Command of the day No. 12 rmdir Deletes a folder, but only when it is empty.
- Command of the day No. 11 ls first, then rm -i Look first, then delete with a safety question.
- Command of the day No. 10 mv to rename Gives a file a new name without copying it.
- Command of the day No. 9 cp -i Copies, but asks before overwriting a file.
- Command of the day No. 8 touch Creates an empty file or updates its time.
- Command of the day No. 7 mkdir -p Creates a folder and every missing folder above it.
- Command of the day No. 6 cd without a target Takes you straight home from anywhere.
- Command of the day No. 5 cd - Jumps back to the folder you were in before.
- Command of the day No. 4 ls -lt Lists entries by time, newest first.
- Command of the day No. 3 ls -lh Shows file sizes in K, M and G.
- Command of the day No. 2 ls -la Lists every entry with details, hidden ones too.
- Command of the day No. 1 pwd Shows the folder you are in right now.
- Command of the day No. 26 2>&1 and /dev/null Moves error messages elsewhere or makes them vanish.
- Command of the day No. 27 > against >> Writes output into a file: replace or append.
- Command of the day No. 28 type and which Shows what really runs when you type a command.
- Command of the day No. 29 Ctrl-R Searches your command history backwards while you type.
- Command of the day No. 30 man and --help Opens the manual or a short help for a command.