Post date: Jul 18, 2016 12:7:26 PM
Taking Root
type sudo in front of any command.
Ie. if you want to start the mysql service as root:
sudo service mysqld start
Moving about the system
ls - list what is in current directory
cd - move to directory ie. cd /home moves to home dir
Managing Services
Common Service Commands
Common Services
Name / Description
MYSQL Database Service
Firewall
Service Command
mysql
iptables
Working with iptables
Editing Text Files
Vim
To use Vim use the following:
sudo vim "path to file"
Ie. for editing/viewing mysql log:
sudo vim "path to file"
Nano
Deleting Files
Single File Delete: - rm
Recursive File Delete - rm -r