Linux - Red Hat
Linux CentOS 6.5
Enable SSH
Start SSH Service
Add new user
useradd tst
passwd tst
password123
password123
Allow user root permissions
visudo
Search for line that says ##Allow root to run any commands anywhere
Copy root line and change username
Allow user sudo permissions
For this, add a user to a group called wheel
usermod -aG wheel tst
Modify visudo to enable wheel group
visudo
Change line
## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
Delete the comment in front to %wheel and the new line will look like
%wheel ALL=(ALL) ALL
Linux RHEL 6.5
subscription-manager register
Username:
Password:
The system has been registered with ID: XXXXX
Linux CentOS 7
updatedb
nano /etc/systemd/logind.conf
systemctl restart systemd-logind.service
Red Hat Linux 7.3
-
GiB = 1,024 Megabytes
/var = install location
/home = user's home directories
/ = root file system, 10 GiB
swap = temp files, 1 GiB
<CTRL> + <l> (L) to wipe screen
mandb
Start vim→Command Mode→Insert mode
press 'a', 'i', 'o', or <INS> to go from Command Mode to Insert Mode
rest of commands are like vi
modes:
Editing
Managing
Useful
Linux CentOS 8
Backlinks