Tag Archives: hidden
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
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
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
Some ways how to connect to remote Linux server.
To establish the ssh-connection between local and remote machines there are two main ways possible to pass the authentication: Classic – login/password pair A little more complicated, but safe and reliable – using a pair of RSA keys to introduce … Continue reading
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
Take some of Linux
Default standard UNIX/Linux utilities cat – concatenate files to standard outputchgrp – change file group ownershipchmod – change file access permissionschown – change file owner and groupcp – copy files and directoriesdate – print or set the system data and … Continue reading
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
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