Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Macintosh Terminal Pocket Guide
SPECIAL OFFER: Upgrade this ebook with O’Reilly
1. The Macintosh Terminal
What’s in This Book?
What’s the Terminal?
What’s a Command?
Ten Commands to Try
Reading This Book
Standard Input and Output
Keystrokes
Long lines
Your friend, the echo command
Quick help
Running the Terminal
The Filesystem
Structure of the Filesystem
Navigating the Filesystem
Home Directories in the Filesystem
System Directories in the Filesystem
Directory path part 1: category
Directory path part 2: scope
Directory path part 3: application
File Protections
The Shell
The Shell Versus Programs
Selected Features of the bash Shell
Wildcards
Brace expansion
Shell variables
Search path
Aliases
Input/output redirection
Pipes
Combining commands
Quoting
Escaping
Command-line editing
Command history
Filename completion
Shell Job Control
jobs
&
^Z
bg
fg
suspend
Killing a Command in Progress
Terminating a Shell
Tailoring Shell Behavior
2. Commands
Basic File Operations
ls
cp
mv
rm
ln
Directory Operations
cd
pwd
basename
dirname
mkdir
rmdir
File Viewing
cat
less
head
tail
nl
strings
od
xxd
File Creation and Editing
Creating a File Quickly
Your Default Editor
Emacs
vim
look
File Properties
stat
wc
du
file
touch
chown
chgrp
chmod
umask
xattr
File Text Manipulation
grep
egrep
fgrep
cut
paste
tr
sort
uniq
tee
File Location
find
xargs
locate
which
type
whereis
File Compression and Packaging
gzip
bzip2
compress
zip
tar
File Comparison
diff
comm
cmp
md5
Printing
lpr
lpq
lprm
Disks and Filesystems
df
diskutil
mount
fsck_hfs
hdiutil
tmutil
sync
rsync
Viewing Processes
ps
uptime
w
top
Controlling Processes
open
kill
nice
renice
shutdown
Scheduling Jobs
sleep
at
crontab
launchctl
Users and Their Environment
logname
whoami
id
who
users
last
finger
chfn
passwd
chsh
dscl
printenv
Becoming the Superuser
Group Management
groups
dscl
Host Information
uname
sw_vers
hostname
scutil
ifconfig
ipconfig
Host Location
host
whois
ping
traceroute
Network Connections
ssh
telnet
scp
sftp
ftp
Email Commands
mail
mailq
Web Commands
curl
wget
Messaging
talk
write
mesg
tty
Screen Output
echo
printf
pbcopy
pbpaste
yes
clear
Math and Calculations
expr
dc
seq
Dates and Times
cal
date
3. Advanced Topics
Running a Shell Remotely
Enabling remote logins
Logging in remotely with SSH
SSH roadblocks
Installing Software with a Package Manager
Obtaining an Apple Developer ID
Installing Xcode
Installing Command Line Tools for Xcode
Installing the Homebrew Package Manager
Using Homebrew
Installing from TAR Files
Programming with Shell Scripts
Creating and Running Shell Scripts
Whitespace and Linebreaks
Variables
Input and Output
Booleans and Return Codes
test and “[”
true and false
Conditionals
Loops
Break and Continue
Command-Line Arguments
Exiting with a Return Code
Beyond Shell Scripting
Getting Help
Final Words
Acknowledgments
Index
About the Author
SPECIAL OFFER: Upgrade this ebook with O’Reilly
Copyright
← Prev
Back
Next →
← Prev
Back
Next →