This content originally appeared on DEV Community and was authored by Mahbub Ferdous Bijoy
- to start any service in linux there have 2 ways
service
andsystemctl
:
$ sudo service SERVICENAME start [service name like httpd,mySQL etc]
$ sudo systemctl start SERVICENAME
- to stop any service in linux :
$ sudo service SERVICENAME stop
# sudo systemctl stop SERVICENAME
- restart any stop service again :
$ sudo service SERVICENAME restart
$ sudo systemctl restart SERVICENAME
- to check any service up and running or not :
$ sudo service SERVICENAME status
$ sudo systemctl status SERVICENAME
$ sudo systemctl is-active SERVICENAME
$ sudo systemctl show SERVICENAME
here is all download related linux command :
- install some software we use
apt
andyum
hereall yum command for RPM like centOS, alpine etc
:
$ sudo apt install AppName
$ sudo yum install appName
- remove any app from your local linux machine :
$ sudo apt remove appName
$ sudo yum erase appName
- get update and upgrade:
$ sudo apt update
$ sudo apt upgrade
$ sudo yum update
- get any install package info:
$ sudo apt show appName
$ sudo yum info appName
- download something from remote server or internet we use
curl
andwget
:
$ curl downloadLink [curl https://www.baeldung.com/] {curl show output in console}
$ wget downloadLink [wget https://www.baeldung.com/] {wget download it into a file}
- to compress a file in linux by .gz extention:
$ gzip myCompressFile
- to decompress a file in linux from .gz extended file:
$ gunzip myfileName.gz
- tar file with .tar extention :
$ tar cvf mytarFile.tar myDestinyFile [here cvf's c stand for create]
$ tar xvf mytarFile.tar [here xvf's x stand for extract]
- dpkg and rpm:
$ dpkg -i some_deb_ubuntu_package.deb [for install debian and ubuntu package file]
$ rpm -i some_centOs_alpine_rpm_package.rpm [for install redhat package file]
$ dpkg -r some_deb_ubuntu_package.deb [remove file]
$ rpm -e some_centOs_alpine_rpm_package.rpm [remove file]
- list install packages in ubuntu debian and redhat:
$ dpkg -l [for ubuntu and debian]
$ rpm -qa [for red hat centOS,alpine ]
This content originally appeared on DEV Community and was authored by Mahbub Ferdous Bijoy
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.
APA
MLA
Mahbub Ferdous Bijoy | Sciencx (2024-09-30T16:50:41+00:00) Day-4: Server management, download, checkOS and services. Retrieved from https://www.scien.cx/2024/09/30/day-4-server-management-download-checkos-and-services/
" » Day-4: Server management, download, checkOS and services." Mahbub Ferdous Bijoy | Sciencx - Monday September 30, 2024, https://www.scien.cx/2024/09/30/day-4-server-management-download-checkos-and-services/
HARVARDMahbub Ferdous Bijoy | Sciencx Monday September 30, 2024 » Day-4: Server management, download, checkOS and services., viewed ,<https://www.scien.cx/2024/09/30/day-4-server-management-download-checkos-and-services/>
VANCOUVERMahbub Ferdous Bijoy | Sciencx - » Day-4: Server management, download, checkOS and services. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/30/day-4-server-management-download-checkos-and-services/
CHICAGO" » Day-4: Server management, download, checkOS and services." Mahbub Ferdous Bijoy | Sciencx - Accessed . https://www.scien.cx/2024/09/30/day-4-server-management-download-checkos-and-services/
IEEE" » Day-4: Server management, download, checkOS and services." Mahbub Ferdous Bijoy | Sciencx [Online]. Available: https://www.scien.cx/2024/09/30/day-4-server-management-download-checkos-and-services/. [Accessed: ]
rf:citation » Day-4: Server management, download, checkOS and services | Mahbub Ferdous Bijoy | Sciencx | https://www.scien.cx/2024/09/30/day-4-server-management-download-checkos-and-services/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.