Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Command Line Kung Fu
Your Free Gift
Introduction
Shell History
Run the Last Command as Root
Repeat the Last Command That Started with a given String
Reuse the Second Word (First Argument) from the Previous Command
Reuse the Last Word (Last Argument) from the Previous Command
Reuse the Nth Word from a Previous Command
Repeat the Previous Command While Substituting a String
Reference a Word of the Current Command and Reuse It
Save a Copy of Your Command Line Session
Find out Which Commands You Use Most Often
Clear Your Shell History
Text Processing and Manipulation
Strip out Comments and Blank Lines
Use Vim to Edit Files over the Network
Display Output in a Table
Grab the Last Word on a Line of Output
View Colorized Output with Less
Preserve Color When Piping to Grep
Append Text to a File Using Sudo
Change the Case of a String
Display Your Command Search Path in a Human Readable Format
Create a Text File from the Command Line without Using an Editor
Display a Block of Text between Two Strings
Delete a Block of Text between Two Strings
Fix Common Typos with Aliases
Sort the Body of Output While Leaving the Header on the First Line Intact
Remove a Character or set of Characters from a String or Line of Output
Count the Number of Occurrences of a String
Networking and SSH
Serve Files in the Current Directory via a Web Interface
Mount a Directory from a Remote Server on Your Local Host via SSH
Get Your Public IP from the Command Line Using Curl
SSH into a Remote System without a Password
Show Open Network Connections
Compare the Differences between a Remote and Local File
Send Email from the Command Line
Send an Email Attachment from the Command Line
Create an SSH Tunnel to Access Remote Resources
Find out Which Programs Are Listening on Which Ports
Use a Different SSH Key for a given Remote Host
Avoid Having to Type Your Username When Connecting via SSH
Simplify Multi-Hop SSH Connections and Transparently Proxy SSH Connections
Disconnect from a Remote Session and Reconnect at a Later Time, Picking up Where You Left Off
Configure SSH to Append Domain Names to Host Names Based on a Pattern
Run a Command Immune to Hangups, Allowing the Job to Run after You Disconnect
Encrypt Your Web Browsing Data with an SSH SOCKS Proxy
Download a Webpage, HTTP Data, or Use a Web API from the Command Line
Use Vim to Edit Files over the Network
Shell Scripting
Use a for Loop at the Command Line
Command Substitution
Store Command Line Output as a Variable to Use Later
Read in Input One Line at a Time
Accept User Input and Store It in a Variable
Sum All the Numbers in a given Column of a Text
Automatically Answer Yes to Any Command
System Administration
Display Mounted File Systems in a Tabular Format
Kill All Processes for a given User or Program
Repeat a Command until It Succeeds
Find Who Is Using the Most Disk Space
Find the Files That Are Using the Most Disk Space
List Processes, Sorted by Memory Usage
List Processes, Sorted by CPU Usage
Quickly Tell If You Are on a 32 Bit or 64 Bit System
Generate a Random Password
Files and Directories
Quickly Make a Backup of a File
Quickly Change a File's Extension
Create Backups of Files by Date with Ease
Overwrite the Contents of a File
Empty a File That Is Being Written To
Append a String to a File
Follow a File as It Grows
Watch Multiple Log Files at the Same Time
Delete Empty Directories
Print a List of Files That Contain a given String
An Easy-to-Read Recursive File Listing
View Files and Directories in a Tree Format
Replace a String in Multiple Files
Extract the Nth Line from a File
Convert Text Files from Windows Format to Linux Format and Vice-Versa
Miscellaneous
Change to the Previous Working Directory
Reset Your Terminal Emulator Display
Search Wikipedia from the Command Line
Make Non-Interactive Shell Sessions Behave the Same as Interactive Sessions
Make Your Computer to Talk to You
Display the Current Date and Time in a Different Time Zone
Display a Calendar at the Command Line
Extract a Tar Archive to a Different Directory
Transform the Directory Structure of a Tar File When Extracting It
Use a Spreadsheet from the Command Line
Rudimentary Command Line Stopwatch
Repeat a Command at Regular Intervals and Watch Its Changing Output
Execute a Command at a given Time
Share Your Screen Session with Another User
Execute an Unaliased Version of an Aliased Command
Save the Output of a Command as an Image
About the Author
Other Books by the Author
Additional Resources Including Exclusive Discounts for Command Line Kung Fu Readers
Books
Courses
Cloud Hosting and VPS (Virtual Private Servers)
Web Hosting with SSH and Shell Access
Index
alias
at
atrm
atq
avconv
awk
adduser
bluefish
break
cal
cat
cd
chmod
cp
column
convert
cut
curl
date
df
diff
dig
dmidecode
dos2unix
dpkg
du
echo
espeak
event designator
exit
file
find
for
firefox
fusermount
getconf
grep
head
history
host
hostname
id
kill
killall
less
logger
ls
lsof
mail
mkdir
mount
multitail
mv
mysql
ncdu
netstat
nohup
openssl
passwd
ping
pkill
ps
python
read
reboot
reset
rm
sed
sc
screen
script
sort
ssh
ssh-copy-id
ssh-keygen
sshfs
su
sudo
tail
tar
tee
tree
time
tr
uname
uniq
userdel
vim
w
wc
watch
wget
while
who
whoami
uptime
unzip
unix2dos
yes
Appendix
← Prev
Back
Next →
← Prev
Back
Next →