Useful Linux CLI commands
Some of these are pretty basic and some are a bit more advanced and/or obscure in my opinion. I hope they are also useful to others out there. Please not that files names and file paths are just made up examples and might not fit what you are attempting to accomplish.
- cd – change directory
- Carl + c – cancels the currently running foreground operation
- pod – s/how your current fill file path
- cp /path/to/file.txt /path/to/your/new/file.txt – copy a file from one location to another location
- move (rename) a file from one location to another location – mv file1.txt file1.back.txt
- show the tail end of a file with any new additions that are written to the file – tail -f /var/log/messages.log
- determine if a node is online – ping duck.com
- determine the network route to a given node – trace route duck.com
- perform a DNS lookup on a given address – nslookup duck.com
- show xx number of lines at the tail end of a file – Show the tail end of a file with any additions – tail -f /var/log/messages
- run a shell script – bash shellscript.sh OR sh shellscript.sh
- check drive mappings for the currently mounted file system – do -h
- change to another system user – su username
- easy way to change to the root user if you have sudo level access – sudo -i