Day-4: Server management, download, checkOS and services

to start any service in linux there have 2 ways service and systemctl:

$ sudo service SERVICENAME start [service name like httpd,mySQL etc]
$ sudo systemctl start SERVICENAME

to stop any service in linux :

$ sudo service SERVIC…


This content originally appeared on DEV Community and was authored by Mahbub Ferdous Bijoy

  1. to start any service in linux there have 2 ways service and systemctl:
$ sudo service SERVICENAME start         [service name like httpd,mySQL etc]
$ sudo systemctl start SERVICENAME

  1. to stop any service in linux :
$ sudo service SERVICENAME stop
# sudo systemctl stop SERVICENAME

  1. restart any stop service again :
$ sudo service SERVICENAME restart
$ sudo systemctl restart SERVICENAME 

  1. 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 :

  1. install some software we use apt and yum here all yum command for RPM like centOS, alpine etc:
$ sudo apt install AppName
$ sudo yum install appName

  1. remove any app from your local linux machine :
$ sudo apt remove appName
$ sudo yum erase appName

  1. get update and upgrade:
$ sudo apt update 
$ sudo apt upgrade
$ sudo yum update 

  1. get any install package info:
$ sudo apt show appName
$ sudo yum info appName

  1. download something from remote server or internet we use curl and wget:
$ 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}
  1. to compress a file in linux by .gz extention:
$ gzip myCompressFile

  1. to decompress a file in linux from .gz extended file:
$ gunzip myfileName.gz

  1. 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]
  1. 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]

  1. 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
APA

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/

MLA
" » 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/
HARVARD
Mahbub 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/>
VANCOUVER
Mahbub 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.

You must be logged in to translate posts. Please log in or register.