Category Archives: cheatsheet

Docker cheatsheet

Installation: Official guide: https://docs.docker.com/engine/install Using dnf instead of yum (RH7/CO7/OL7) and dnf configure-manager instead of yum-configure-manager. Pull image / run container: sudo docker pull <image name> sudo docker run [opts] <repository>/<image name>:<version> or latest useful [opts]: –name <name> – run … Continue reading

Posted in cheatsheet, linux | Tagged | Leave a comment

Linux repositories & package management

yum – old (up to CentOS 7) dnf – new (since CentOS 8) dnf dnf update dnf upgrade dnf install <package name> dnf remove <package name> dnf list <package name> dnf module list <module name> dnf module reset <module name> … Continue reading

Posted in cheatsheet, linux | Tagged | Leave a comment

Linux services

Services there are the background run programs also called daemons. sudo systemctl <command> <service name> Modules control сommands start stop restart reload reload-or-restart enable (with –now flag – enable and run immediately) disable (with –now flag – disable and stop … Continue reading

Posted in cheatsheet, linux | Tagged | Leave a comment

Midnight Commander editor shortcuts

F3 Begin of text selection. Second press – end of text selection Shift+F3 Begin of block text selection F5 Copy text selection F6 Move text selection F8 Delete text selection Meta+i Go to previous bookmark Meta+j Go to next bookmark … Continue reading

Posted in cheatsheet, general, linux | Tagged | Leave a comment

Linux file management

Main commands List file(s) permissions: ls -la <filename/wildcard> Following commands with -R mean recursive action along the directory tree. Set file(s) permissions: chmod <object><modifier><digits/symbols> <filename/wildcard> <object> (if no – set every field): u – owner; g – owners group; o … Continue reading

Posted in cheatsheet, linux | Tagged | Leave a comment

Linux simple user management

Groups Create group: sudo groupadd <group>List users in the group: getent group <group>If <group> missing all the groups are listed with users.Attention: the user is not listed if the group is his main group! The only supplementary groups’ members displayed. … Continue reading

Posted in cheatsheet, linux | Tagged | Leave a comment