š The CoCalc Library - books, templates and other resources
License: OTHER
This notebook was prepared by Donne Martin. Source and license info is on GitHub.
Linux Commands
Disk Usage
Splitting Files
Grep, Sed
Compression
Curl
View Running Processes
Terminal Syntax Highlighting
Vim
Disk Usage
Display human-readable (-h) free disk space:
Display human-readable (-h) disk usage statistics:
Display human-readable (-h) disk usage statistics, showing only the total usage (-s):
Display the human-readable (-h) disk usage statistics, showing also the grand total for all file types (-c):
Splitting Files
Count number of lines in a file with wc:
Count the number of lines in a file with grep:
Split a file into multiple files based on line count:
Split a file into multiple files based on line count, use suffix of length 1:
Grep, Sed
List number of files matching ā.txt":
Check number of MapReduce records processed, outputting the results to the terminal:
Delete matching lines in place:
Compression
Curl
View Running Processes
Terminal Syntax Highlighting
Add the following to your ~/.bash_profile:
Reload .bash_profile:
Vim
Run the following command to enable the tutorial:
Run the following commands to enable syntax colors: