Basic to advanced Complete Red Hat Linux commands

Опубликовано: 06 Август 2023
на канале: CS BABA
220
35

CS BABA
@csbabaa
---------------------------------------------------------------------------------------------------
Thank you for watching please like share and subscribe
---------------------------------------------------------------------------------------------------
Basic to Advanced Red HAT Linux Commands

Basic Linux Commands
hostnamectl Get system information including, operating system, kernel, and release version

date Display the current system date and time

hostname Display the hostname of the system

ifconfig Display the IP and Mac Address of the system

w Display currently logged in users in the system

free -m Display free and used memory in the system

top Display all running processes

ls List all files and directories in the current working directory

ls -al List all files and directories including, hidden files and other information like permissions, size, and owner

cd Change the directory to the home directory

cd .. Change the directory to one level up

cat filename Display the content of the file
tail filename Display the last 10 lines of a file
head filename Display the first 10 lines of a file
mv oldfile newfile Rename a file
rm filename Delete a file
mkdir dirname Create a directory
rm -rf dirname Remove a directory
history Print a history list of all commands

Networking Commands

ip addr show Or ifconfig List all IP addresses and network interfaces
ip addr add IP-Address dev eth1 Add a temporary IP address to interface eth1
netstat -pnltu Display all listening port
whois domainname Display more information about any domain
dig domainname Display DNS information of any domain
host domainname Perform an IP lookup for a domain
dig -x IP-Address Perform a reverse lookup of an IP address
dig -x domainame Perform a reverse lookup on domain
ping host-ip Check connectivity between two hosts

clear Clear the terminal
shutdown -h now Shut down the system
reboot Restart the system
File Permission Commands
ls -l filename Check the current permission of any file
chmod 777 filename Assign full(read, write, and execute) permission to everyone
chmod -R 777 dirname Assign full permission to the directory and all sub-directories
chmod 766 filename Assign full permission to the owner, and read and write permission to group and others
chmod -x filename Remove the execution permission of any file
chown username filename Change the ownership of a file
chown user:group filename Change the owner and group ownership of a file
chown -R user:group dirname Change the owner and group ownership of the directory and all sub-directories

User and Group Management Commands

w Display all login users
useradd username Add a new user account
userdel -r username Delete a user account
usermod [option] username Change the user account information including, group, home directory, shell, expiration date
usermod -aG groupname username Add a user to a specific group
groupadd groupname Create a new group
groupdel groupname Remove a group
last Display information of the last login user
id Display UID and GID of the current user


Смотрите видео Basic to advanced Complete Red Hat Linux commands онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CS BABA 06 Август 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 220 раз и оно понравилось 35 людям.