Basics - More Bash Scripting
You could start your learning here:
#
Reading Documentation about Commandsman COMMAND
COMMAND -h
orCOMMAND --help
#
Quick Reference - Basic Commandscat
,less
,more
to print files,head
,tail
to print only the two ends of the filegrep "text"
to filter the output of the stdout pipe (Ref)- check network by
ping
,ifconfig
,iwconfig
- check USB devices by
lsusb
- check harddrive (block device) by
lsblk
- check device messages by
dmesg
ordmesg -w
- check services by
sudo systemctl status
and similar command ofstart
,stop
,restart
.bashrc
and .profile
file#
They are scripts that are automatically run by the shell when you open a new terminal. They can be quite useful in setting up environment variables like PATH, and running scripts.