Bash .profile additions
Count all files in the current directory
- alias count='ls -l | wc -l'
- alias countxml='ls -l *.xml | wc -l'
- alias remallxml="find . -maxdepth 1 -name '*.xml' -delete"
"cat" files and "grep" contents while listing the name of the file (in this case "huxley")
- cat * | grep "hux" *
Remove all files More user friendly way to see file sizes with ls -l
- ls -l --block-size=MB
- du -h /folder
No comments:
Post a Comment