Skip to content

Instantly share code, notes, and snippets.

@surhudm
Last active June 13, 2019 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save surhudm/5e07e8755aa5e38474b4b498f7334f10 to your computer and use it in GitHub Desktop.
Save surhudm/5e07e8755aa5e38474b4b498f7334f10 to your computer and use it in GitHub Desktop.
Useful linux commands

Useful linux commands:

# List files in directory
ls -lrt

# Show contents of file
cat filename

# Useful to parse lines
awk

# Editor
vim

# Output the contents of file in a scrollable manner
less

# Echo the input to the shell output
echo

# Change directory
cd directoryname

# Make directory
mkdir directoryname

# Add directories to path
export PATH=path_to_set:$PATH

#Useful as a stream editor
sed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment