This is an old revision of the document!
cp /usr/share/zoneinfo/Europe/Riga /etc/localtime
Add:
echo loop > /etc/modules-load.d/loop.conf
systemctl enable cron.service
install the basic desktop on CentOS:
yum groupinstall basic-desktop
Screen is deprecated into Redhat, now replaced by TMUX
Screen (command) is a background terminal, you can start applications in background, quit your windows and recall your session.
Start a sceen session using a specific name
# screen -S session_name
Help
Ctrl+a ?
Below are some most common commands for managing Linux Screen Windows:
You can detach from the screen session at any time by typing:
Ctrl+a d
Reattach to a Linux Screen:
screen -r
To find the session ID list the current running screen sessions with:
# screen -ls There are screens on: 10835.pts-0.linuxize-desktop (Detached) 10366.pts-0.linuxize-desktop (Detached) 2 Sockets in /run/screens/S-linuxize.
If you want to restore screen 10835.pts-0, then type the following command:
screen -r 10835
You can easily limit CPU usage with cpulimit command like:
# cpulimit -l 10 -- /usr/bin/clamscan -r / --exclude-dir=/sys/ --quiet --infected > /var/log/clamscan/clamscan.$(date +%Y%m%d).log