Basics - More Bash Scripting
You could start your learning here:
Reading Documentation about Commands#
man COMMANDCOMMAND -horCOMMAND --help
Quick Reference - Basic Commands#
cat,less,moreto print files,head,tailto 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
dmesgordmesg -w - check services by
sudo systemctl statusand 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.