Advanced Search
Search Results
48 total results found
Setup
home vms 192.168.50.164 192.168.50.105 work vms 192.168.17.185 192.168.17.208 Hyper V Disable secureboot Proxmox (host) (wget command from red hat site) > download > f12 > network > copy cURL > trim it curl -L \ -H "Cookie: rh_user_id=59291558; rh_sso_sessi...
File Management
Linux Filesystems: ext3 ext4 xfs Windows Filesystems: NTFS FAT Basic Commands pwd print working directory cd home directory (/home/username) or /root ~ / root directory (absolute) ~ user directory (/home/username) . current directory (relative) .. parent direc...
File Editor
Text Editors ed (1969) original, line oriented standard for Unix ex (1976) extended, more powerful version of ed, introduced visual mode for full screen editing vi (1976) classic, efficient, visual full-screen editor built on top of ex emacs (1976) extensible...
Shell Scripting
Basic Commands echo $0 display current shell cat /etc/shells display available shells cat /etc/passwd shows user's shell e.g. /bin/bash) chmod a+x scriptname allow execute permission for all ./script.bash execute from current location /home/userdir/script.bash...
Scheduled Tasks
Scheduled Tasks crontab -e scheduled jobs -e edit at. scheduled one-off jobs * * * * * minute (0-59), hour (0-23), day (1-31), month (1-12), week day (0-6) 0 * * * * /home/user/script run every hour (at minute 0) 0 0 * * * /home/user/script run every day (a...
Access Control
File Permissions Files that are not scripts do not have x Directories have x because users can cd into them d r w x r w x r w x file type user read user write user execute group read group write group execute others read others write others execute Numerical P...
SELinux
User Management
useradd username create a user groupadd groupname create a group userdel username delete user groupdel groupname delete group usermod username modify user Important files /etc/passwd /etc/group /etc/shadow Examples useradd -g superheros -s /bin/bash -c "Us...
Processes & Services
Basic Definitions Application Script Process Daemon Thread Job Monitoring and Management command example function fdisk fdisk -l disk partitioner -l list disks df df -h filesystem capacity du du -sh /var/log size of each item in directory uptime uptime -p show...
System Performance
Tuned - dynamic system duning daemon rpm -qa | grep tuned check if tuned package is installed yum install tuned install tuned systemctl status/enable/disable tuned check tuned status tuned --version check tuned version tuned-adm change setting for tuned daemon...
Networking
Basic Commands ip a Display network inerfaces and details ip addr ifconfig hostnamectl set-hostname <hostname> set hostname NetworkManager systemctl status NetworkManager NetworkManager status ps -ef | grep NetworkManager verify the process is running Network ...
Network Firewall
Software Firewall (Runs on operating system) Hardware Firewall (Dedicated network appliance) Modern Linux uses firewalld as front-end & nftables under the hood organises rules by "zones" (like public, home, work) exposes "services" (ssh, http, samba, nfs, etc....
Archive & FTP
Archive and Compress Files tar cvf nsotelo.tar /home/nsotelo archive all folders in /home/nsotelo mkdir new create a directory 'new' mv nsotelo.tar new move archive to 'new' cd new change to 'new' directory gzip nsotelo.tar compress nsotelo.tar gzip -d nsotelo...
Software & Packages
RHC Connect (needed for package commands) rhc connect -u username -p password connects to red hat subscription manager username: nicksotelo95 password: RHELsolomon5!! Packages are Collections of Files RPM = Red Hat Package Manager tool CentOS & RHEL packages...
Containers
Containers allows developers to test and build applications on any computer by putting it in a container bundled with software code, libraries, and config files Docker software used to create and manage containers can be installed on Linux - daemon can be co...
Storage & LVM
Types of Storage Local Storage SAN (Storage Area Network) NAS (Network Attached Storage) Basic Commands fdisk -l disk partition utility (displays disk system names) -l list disks lsblk -f list block devices (displays UUID) -f forest (tree) hierarchy df -h fi...
Stratis Pools
Stratis Red Hat 8 introduced Stratis volume management Uses thin provisioning (starts with 546Mb) Combines LVM and filesystems onto one system Stratis automatically extends the filesystem if space is available dnf install stratis-cli stratisd Install stratis...
Network File Shares
Network file sharing (Linux to Linux) A client's mounted NFS export appears as a local directory NFS - Exam Scenario install nfs uitilities enable the nfs server service add a correct line to /etc/exports apply it with exportfs -arv allow the nfs service in ...