Basic Linux Commands
Create new tar archive
#tar -cvf file.tar /directoryname
Extract from existing tar archive
#tar -xvf file.tar
Create zip for folder
#zip -r directory.zip /directoryname
To extract .zip compressed file
#unzip file.zip
Goto paritcular line of file
#vim +10 file.txt
Goto the first match of the specified keyword
#vim +/keyword file.txt
Search for a given string in direcotory recursively
#grep -r “keyword” /dirname/
To install apache using yum
#yum install httpd
To upgrade apache using yum
#yum update httpd
To uninstall apache using yum
#yum remove httpd
Ready to Solve Your Most Complex Technical Challenges?
Our senior advisors are ready to help you navigate the ever-evolving technology landscape with precision and expertise.
Schedule a ConsultationRelated Articles
Setup GitHub authentication on Mac
You have to configure Git with your GitHub account and set up secure authentication and the recommended approach is to use SSH…
IP Release/Renew/Flush DNS
ipconfig shows all current TCP/ IP network configuration values like: IP Address, Subnet Mask and Default Gateway IP Release It erase/release the…
High Level Linux Commands
Creating FTP User cd /var/www/vhosts/ (Path of vhosts directory) useradd newUser -d /var/www/vhosts/ -G apache (newUser: Name of user to be added)…