SMERTH
Full-stack Web Developer
building with
100%
re-cycled electrons.
Menu
Hello
Projects
Notes
Screenshots
About
Timeline
Bash on MacOS
Notebook by Smerth
Chapter 1
Introduction
1.1
Unix flavours
1.2
MacOS
1.3
Terminal
1.4
Executing C programs in terminal
1.5
Getting Help
Chapter 2
Working with files and directories
2.1
Reading Files
2.2
Reading portions of a file
2.3
Creating Directories
2.4
Moving and renaming files and directories
2.5
Copying files and directories
2.6
Deleting files and directories
2.7
Finder aliases in UNIX
2.8
Hardlinks
2.9
Symlinks/Symbolic Links
2.10
Searching for files and directories
Chapter 3
Ownership and Permissions
3.1
whoami
3.2
$HOME
3.3
Unix Groups
3.4
chown - change ownership
3.5
chmod - change permissions
3.6
The Root User
3.7
Sudo
Chapter 4
Commands and Programs
4.1
Command basics
4.2
Common options for most programs
4.3
Quitting a program
4.4
The PATH variable
4.5
System information commands
4.6
Disk information commands
4.7
Viewing processes
4.8
Monitoring processes
4.9
Stopping processes
4.10
Text file helpers
4.11
Utility programs
4.12
History - working with history
Chapter 5
Directing Input and Output
5.1
Standard input and standard output
5.2
Directing output to a file
5.3
Appending to a file
5.4
Directing input from a file
5.5
Directing input and output
5.6
Piping output to input
5.7
Suppressing output
Chapter 6
Configuring Your Working Environment
6.1
Profile, login, and resource files
6.2
Where to put custom configuration
6.3
Setting command aliases
6.4
Setting and exporting environment variables
6.5
Setting the PATH variable
6.6
Configuring history with variables
6.7
Customizing the command prompt
Chapter 7
Unix Power Tools
7.1
Intro
7.2
GREP
7.3
REGEX
7.4
TR
7.5
SED
7.6
CUT
7.7
DIFF
7.8
XARGS
Chapter 8
MacOS Only Commands
8.1
Finder integration
8.2
Open Stuff
8.3
Clipboard integration
8.4
Screencapture
8.5
Text to speech
8.6
Spotlight