We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
hostname
ifconfig , cat /etc/os-release
Dirctory commands: mkdir(to make a new directory) Also to make a parent directory and make sub directories in one command the do: mkdir -p dir1/dir2/dir 3....so on rmdir(to remove a empy directory) rm -rf(to remove the files and directories as well as sub directories and sub files)
yum install httpd
(d- daemon and if yum install httpd -y the yes to all) yum remove httpd service httpd start(service cmd is used to start or stop the service) service httpd status chkconfig httpd on (chkconfig used for automatically on the server when system restarts or u open your system after many days) chkconfig httpd off which whoami echo (reflects our message to all the connected users and also used to create a file) yum list installed (Show's list of all installed softwares) grep(to search anything in a file) cut(to search anything in a vertial line form) find(to find any file or directory in the entire operating system) head(to show first 10 lines of the file) tail(to show last 10 lines of the file)
which(is used to show the specific path of the file that where it is located) uniq(removes the duplication and show the unique data in the file)
useradd (to create user)
groupadd (To create group) gpasswd -a OR -M (-a to add a single user into specific group and -M to add mutiple user into specific group)
ln(hardlink)(to create a backup of the file or directory)
ln -s(softlink)(basically to create a shortcut for accessing a file or directory directly using that shortcut)
tar -cvf(create verbose force) filename/dirname(Tar is an archiver used to combine
multiple files into one) gzip(gzip is a compression tool used to reduce the size of a file) wget(wget is the non-interactive network downloader(basically used to download anthing from the software))