Bash Tips

Bash multiprocessing
Useful commands
cheat.sh
cheat.sh provides unified access to the best community driven cheat sheets repositories of the world.
aria2c
aria2 is a lightweight multi-protocol & multi-source, cross platform download utility operated in command-line.
chmod
curl
curl a command line tool and library for transferring data with URL syntax.
Useful operation mode:
-o, --output - write output to
fileinstead of stdout.-X, --request - specifies a custom request method to use when communicating with the HTTP server.
-H, --header header/@file - extra header to include in the request when sending HTTP to a server.
-d, --data - adds body to the request.
--path-as-is - tell curl to not handle sequences of
/../or/./in the given URL path.-v, --verbose - makes curl verbose during the operation.
find
grep
ipython
ipython is a handy command shell for python, which supports:
Tab completion
Help by
.method?+ enterEmbedding in a script for debugging using the interactive shell:
ncdu
ncdu is a disk usage analyzer with an ncurses interface.
Useful hotkeys:
Navigation by arrows
s- sort by sizeC- sort by quantityc- show quantityd- delete
pv
pv - monitor the progress of data through a pipe.
tar
tar saves many files together into a single tape or disk archive, and can restore individual files from the archive.
Useful operation mode:
-c- create a new archive-f- use archive file or device ARCHIVE-j, --bzip2- compress/decompress the archive through bzip2-z, --gzip- compress/decompress the archive through gzip-t, --list- list the contents of an archive-x- extract files from an archive-C, --directory=DIR- change output directory to DIR-vverbosely list files processed
youtube-dl
youtube-dl is a command-line program to download videos from youtube and other video sites.
Modern Unix
Last updated