Skip to content

Instantly share code, notes, and snippets.

@markomilivojevic
Last active April 11, 2019 14:08
Show Gist options
  • Save markomilivojevic/23935f70d71a473187908ccac0f0954d to your computer and use it in GitHub Desktop.
Save markomilivojevic/23935f70d71a473187908ccac0f0954d to your computer and use it in GitHub Desktop.
Common Linux Commands
ls
ls *{pattern}* "list files like *pattern*"
ls -la
ll
tail -f {filename}
tail {filename}
head {filename}
cat {filename}
grep {what} {filename} "occurence in file"
grep {what} {filename} -A 20 -B 20 "-A lines after, -B lines before"
du -sh "file size"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment