List, Status, Start, Stop and Restart services in Linux
The following should workin on RHEL/CentOS and Ubuntu/Debian distros. List services systemctl list-unit-files –type service Get Service Status systemctl status sshd
An Engineers Notebook For All To See
The following should workin on RHEL/CentOS and Ubuntu/Debian distros. List services systemctl list-unit-files –type service Get Service Status systemctl status sshd
Updating APT reposTo add additional repo’s we need to update the /etc/apt/sources.list file. we can do this with a text editor: sudo /etc/apt/sources.list Here we’ll add the Opera repo into …
.rpm files are the installation files for software in the rhel / CentOS flavours of linux. For this example I used wget to download http://mirror.centos.org/centos/7/os/x86_64/Packages/kate-4.10.5-6.el7.x86_64.rpm To install these, use: yum install kate-4.10.5-6.el7.x86_64.rpm You can …
.deb files are the installation files for software in the debian / ubuntu flavours of linux. To install these, use the “apt” command. Don’t use “aptitude” or “apt-get”. For this …
To view the current time and date, the command is just:date To view the time and date plus all of the time zone information, run:timedatectl To change the time zone, …
To create a software RAID we need multiple disks connected to our server. I have connected 3 10GB disk and formatted my disks as a GTP, 9GB Linux RAID file …
Logical Group Manager (LVM) is a linux solution for spanning volumes over multiple disks. It’s similar to windows storage pools only LVM does not support RAID. Assume we have 3 …
Manual Scans If you don’t know the device name, use fdisk, df , or any other tool to find it. Unmount the device: sudo umount /dev/sdb1Run fsck to repair the …
To mount a partition, we first need a folder to mount it into. I created a folder called ‘company’ in /mnt/. If we want to mount /dev/sbd1, we use the …
To identify the disk first type lsblk sda is the first disk and sdb is the second. If you have more disk connected, it’ll be sdc, sdd and so on. …