Linuxopsys.com

How to Use systemctl status Command to Check Service Status

The systemctl status command is the easiest way to get a snapshot of your Linux system's service's health. You can use it to quickly find … See more

Actived: 4 days ago

URL: https://linuxopsys.com/topics/systemctl-status-command

Shell Script to Check Linux Server Health

WebBash Scripting. In this tutorial, we will show how to write a shell script to perform a Linux server health check. This script collects system information and status …

Category:  Health Go Health

How to Shrink Root Partition without Live CD/USB

WebIn the script, we will use e2fsck to check filesystem health and resize2fs to shrink the filesystem. Using fdisk we perform the following task in the script. Start delete …

Category:  Health Go Health

Bash Parameter Expansion with Cheat Sheet

WebBash parameter expansion or parameter expansion is defined by the ‘$’ symbol and the optional curly brackets ( { }). The parameter expansion is used with the …

Category:  Health Go Health

How to Check LUN or SAN Disk in Linux

Web1. Check attached LUN or SAN disk in Linux. To check the attached LUN from a storage device in Linux, we can use the /proc/scsi/scsi file content but it will give …

Category:  Health Go Health

How to Test SSD/HDD Health in Linux

WebTest SSD/HDD Health using Gnome Disks. With GNOME disks utility you can get a quick review of your SSD drives, format your drives, create a disk image, run …

Category:  Health Go Health

Curl Command Cheat Sheet

WebCurl Command Cheat Sheet – Quick Reference Guide. Curl Stands for “Client URL”. It is a command tool that allows you to transfer data to and from a server. …

Category:  Health Go Health

How to List Mounted Drives on Linux

WebIn Linux, mount command mounts a storage device or filesystem, and let's go through commands that can display all those mounts. 1. Listing from /proc using cat …

Category:  Health Go Health

Understanding top Command CPU Usage

WebYou can use lscpu command to get information about the number of threads per core. By default, the processes are sorted by the %CPU column in descending order. …

Category:  Health Go Health

How to Use ethtool Command with Examples

WebThe ethtool command is used to display/change Ethernet adapter settings. You can change network card speed, auto-negotiation, wake on LAN setting, duplex mode …

Category:  Health Go Health

Special Variables in Bash Explained [With Examples]

Web2.2. $1 to $9 - Arguments to the Script. We can refer to the arguments passed to the script by using the special variables $1 to $9. Example: #!/bin/bash. echo …

Category:  Health Go Health

wget Command in Linux Explained [With Examples]

WebSave the file under a different name. Use the -O (uppercase 'O') option with wget command to specify the name of the file that will be saved on the local system. By …

Category:  Health Go Health

iostat Command in Linux Explained [With Examples]

WebThe iostat is a command-line tool used primarily for monitoring the input/output (I/O) performance of storage devices, such as hard drives, partitions, and …

Category:  Health Go Health

Bash Exit Command Explained [With Examples]

WebBy convention, an exit status code of 0 indicates success, while any other value indicates failure. Let us develop a bash script with a function to divide two numbers …

Category:  Health Go Health

Guide to Scan/Detect New LUNs on Linux

WebWhen you are running RedHat Enterprise Linux 5, 6, and 7 series system with DM-Multipath and the software iSCSI initiator, you can discover new LUNs by …

Category:  Health Go Health

How to Build Debian Packages

WebSyntax: dpkg-deb —build <debian-source-directory> . The command will build the package in the current directory. The . at the end of the command will build the …

Category:  Health Go Health

Bash Exec Command with Examples

WebThe main difference between the two functions is that invokeScriptAndReturn will continue execution of the script after listFilesInDirectory.sh completes, whereas …

Category:  Health Go Health

Bash mapfile Command Explained [With Examples]

WebBash mapfile command. The mapfile command offers a powerful yet simple solution, allowing you to effortlessly read lines from standard input (or a specified file …

Category:  Health Go Health

How to Add Repository to Debian

Web1. Adding repository from terminal. You can add a package repository to Debian 2 ways from the shell: manually or using apt. The package repository information …

Category:  Health Go Health