Professional Documents
Culture Documents
systemctl status Shows the status of a watch -n Issue command every > Redirect STDOUT to a file.
name.service service. interval interval seconds and print
2> Redirect STDERR to a file.
'command' output.
systemctl Changes a service's &> Redirect all output to a file.
start|stop|restart|relo state (not reboot kill pid Kill process with ID pid.
persistent). 2>&1 Redirect all output to a pipe.
ad name.service
pkill name Kill process with name name.
Use >> to append rather than overwrite.
systemctl Restarts if the service
killall name Kill all processes with names
condrestart is already running.
beginning with name.
useradd/usermod options
name.service
systemctl list-units -- Displays the status of Crontab management -d, --home The user's home directory.
find dir - Find all files named string owned the new location.
SystemD system management
user by user in dir.
systemctl Powers off the system. Linux miscellaneous commands
user
poweroff
find dir - Find all files modified less than time timedatectl list- RHEL7 only: List
systemctl Restarts the system.
mmin minutes ago in dir. timezones available timezones.
reboot
time timedatectl set- RHEL7 only: Set
journalctl -f Tails the system message system timezone to
grep -i Search input for lines containing timezone time/zone
log. timezone.
string string (case-insensitive).
journalctl -u Shows logs for name.
ln -s Set system timezone
grep -C Search input for lines containing
name.service to timezone.
num string, and show num lines before /usr/share/zoneinfo/ti
journalctl Shows all messages related and after. me/zone
string
/path/to/execut to the specified executable. /etc/localtime
grep -v Search input for lines NOT
able
string containing string
G Go to end of file.
CREATE Creates database
DATABASE name; name. P Paste after cursor.