DEV Community

Mahbub Ferdous Bijoy
Mahbub Ferdous Bijoy

Posted on

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

  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

Enter fullscreen mode Exit fullscreen mode
  1. to stop any service in linux :
$ sudo service SERVICENAME stop
# sudo systemctl stop SERVICENAME

Enter fullscreen mode Exit fullscreen mode
  1. restart any stop service again :
$ sudo service SERVICENAME restart
$ sudo systemctl restart SERVICENAME 

Enter fullscreen mode Exit fullscreen mode
  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

Enter fullscreen mode Exit fullscreen mode

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

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

Enter fullscreen mode Exit fullscreen mode
  1. get update and upgrade:
$ sudo apt update 
$ sudo apt upgrade
$ sudo yum update 

Enter fullscreen mode Exit fullscreen mode
  1. get any install package info:
$ sudo apt show appName
$ sudo yum info appName

Enter fullscreen mode Exit fullscreen mode
  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}
Enter fullscreen mode Exit fullscreen mode
  1. to compress a file in linux by .gz extention:
$ gzip myCompressFile

Enter fullscreen mode Exit fullscreen mode
  1. to decompress a file in linux from .gz extended file:
$ gunzip myfileName.gz

Enter fullscreen mode Exit fullscreen mode
  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]
Enter fullscreen mode Exit fullscreen mode
  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]

Enter fullscreen mode Exit fullscreen mode
  1. list install packages in ubuntu debian and redhat:
$ dpkg -l       [for ubuntu and debian]
$ rpm -qa       [for red hat centOS,alpine ]

Enter fullscreen mode Exit fullscreen mode

Hot sauce if you're wrong - web dev trivia for staff engineers

Hot sauce if you're wrong · web dev trivia for staff engineers (Chris vs Jeremy, Leet Heat S1.E4)

  • Shipping Fast: Test your knowledge of deployment strategies and techniques
  • Authentication: Prove you know your OAuth from your JWT
  • CSS: Demonstrate your styling expertise under pressure
  • Acronyms: Decode the alphabet soup of web development
  • Accessibility: Show your commitment to building for everyone

Contestants must answer rapid-fire questions across the full stack of modern web development. Get it right, earn points. Get it wrong? The spice level goes up!

Watch Video 🌶️🔥

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay