Useful Unix commands
Last active
September 12, 2015 19:38
-
-
Save petermac-/4174586ba47cac099333 to your computer and use it in GitHub Desktop.
unix_commands.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Return to the directory you were in before executing your last cd command. | |
cd - | |
# Run your last entered command as sudo. | |
sudo !! | |
# Shows who’s currently logged in to your system. | |
w | |
# Attaches line numbers to text. | |
nl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment