Difference between revisions of "Unix Commands"
From Steak Wiki
Jump to navigationJump to search| Line 20: | Line 20: | ||
==External Links== | ==External Links== | ||
| − | * https://lowendbox.com/blog/ten-cool-linux-command-line-tricks-for-the-journeyman-practitioner/ - A similar list. Somehow I missed the timeout command. | + | * https://lowendbox.com/blog/ten-cool-linux-command-line-tricks-for-the-journeyman-practitioner/ - A similar list. Somehow I missed the timeout and script command. |
Revision as of 21:00, 16 November 2025
some years of gnulinux, commands i have found easy to understand, yet still useful
find . -print | grep <somefile> find . -printf '$TY-%Tm-%Td %p\n' | grep 2020-12-29 stat /files/* | grep -A5 <somenameoffile> | awk 'xor(/File/,/Modify/)' > /tmp/dates sed -e 's/original/new/g' -i editfileinplace.txt grep 'one|two|three' -search multiple items (may want to add -i to ignore case)
edit .bashrc
alias hs="history"
Useful but less intuitive commands
To get file counts for all directories (say you want to know how bloated / lean a software project is)
du -a | cut -d/ -f2 | sort | uniq -c | sort -nr
Resources: Unix Power Tools 1993
External Links
- https://lowendbox.com/blog/ten-cool-linux-command-line-tricks-for-the-journeyman-practitioner/ - A similar list. Somehow I missed the timeout and script command.