Notes

Bash - Linux commands

author: Paul Kim

categories: bash, linux

tags: bash, linux

Linux commands

# manual
man <command>

# display who is logged in
who

# display who is logged in and what they are doing
w

# indicates last logins of users and ttys
last

# process status
ps

# current user
whoami

# current working directory
pwd

# list directory contents
ls

# concatenate and print files
cat

# gnu regex
grep

# stream editor
sed

# pattern-directed scanning and processing language
awk

# time
time

# calendar
cal

# sudo apt install rig
# brew install rig
rig

# sudo apt install lolcat
# brew install lolcat

# sudo apt install sl
# brew install sl
sl
sl | lolcat

# sudo apt install libaa-bin
# brew install aalib
aafire
aafire | lolcat

# sudo apt install cmatrix
# brew install cmatrix
cmatrix
cmatrix | lolcat

# sudo apt install cowsay
# brew install cowsay
cowsay "moo"
cowsay "moo" | lolcat
cowthink "moo"
cowthink "moo" | lolcat

# sudo apt install figlet
# brew install figlet
figlet "hello"
figlet "hello" | lolcat

# sudo apt install toilet
# brew install toilet
toilet "welcome"
toilet "welcome" | lolcat

# sudo apt install sysvbanner
banner "welcome"
banner "welcome" | lolcat

# sudo apt install fortune-mod
# brew install fortune
fortune
fortune | cowsay | lolcat
fortune | cowthink | lolcat
fortune | figlet | lolcat

# make terminal talk
# sudo apt install gnustep-gui-runtime
say
say "hi"

# sudo apt-get install espeak
# brew install espeak
espeak
espeak "h1"

# yes
yes
yes | command
yes /path/to/script

# reverse string
rev

# brew install telnet
telnet towel.blinkenlights.nl

ChromeEdgeFirefoxOpera

© 2021 paulkode.com. All rights reserved.