1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-11-24 13:47:36 +00:00

Merge pull request #142 from optimist2309/master

bash cheat sheet updated
This commit is contained in:
Julien Le Coupanec 2020-10-05 00:02:07 +02:00 committed by GitHub
commit 5502ffd277
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,6 +95,8 @@ genscript # converts plain text files into postscript for pr
dvips <filename> # prints .dvi files (i.e. files produced by LaTeX) dvips <filename> # prints .dvi files (i.e. files produced by LaTeX)
grep <pattern> <filenames> # looks for the string in the files grep <pattern> <filenames> # looks for the string in the files
grep -r <pattern> <dir> # search recursively for pattern in directory grep -r <pattern> <dir> # search recursively for pattern in directory
head -n file_name | tail +n # Print nth line from file.
head -y lines.txt | tail +x # want to display all the lines from x to y. This includes the xth and yth lines.
############################################################################## ##############################################################################
@ -111,7 +113,7 @@ cd .. # changes to the parent directory
cd <dirname> # changes directory cd <dirname> # changes directory
cp -r <dir1> <dir2> # copy <dir1> into <dir2> including sub-directories cp -r <dir1> <dir2> # copy <dir1> into <dir2> including sub-directories
pwd # tells you where you currently are pwd # tells you where you currently are
cd ~ # changes to home.
############################################################################## ##############################################################################
# SSH, SYSTEM INFO & NETWORK COMMANDS # SSH, SYSTEM INFO & NETWORK COMMANDS