This article explains 15 most frequently used yum commands with examples. 1. Install a package using yum install To install a package, do ‘yum install packagename’. This will also identify the dependencies automatically and install them. The following example installs postgresql package. # yum ...
grub-install Command Examples 1. Install GRUB on a BIOS system: # grub-install --target=i386-pc path/to/device 2. Install GRUB on an UEFI system: # grub-install --target=x86_64-efi --efi-directory=path/to/efi_directory --bootloader-id=GRUB 3. Install GRUB pre-loading specific modules...
Ubuntu, CentOS, and AlmaLinux. We’ll delve into how to compile ‘logrotate’ from the source, install a specific version, and finally, we will show you how to use the ‘logrotate’ command and ascertain that
Theatcommand has plenty of use-case examples. The following section demonstrates usefulatcommand examples. Schedule a Job Interactively Theatcommand allows you to schedule a job using the interactiveatprompt. The interactive prompt lets you enter which commands to run at the specified time. The com...
The mpstat command writes to standard output activities for each available processor, processor 0 being the first one. Global average activities among all processors are also reported. Table of Contents How to install mpstat? mpstat command output Understanding mpstat output mstat commands example ...
command > output.log 2> error.log 分别将标准输出和错误输出重定向到不同的文件 command > /dev/null 丢弃命令的标准输出 command > /dev/null 2>&1 丢弃命令的标准输出和错误输出 command > output.log 2>&1 将标准输出和错误输出都会写入到output.log command &> output.log 将标准输出和错误一起写入...
2. Run the following command to installlocate: sudo yum install mlocate Note:Installing themlocatepackage creates acron jobthat runs theupdatedbcommand every 24 hours and updates the database. To manually update the database, usesudo updatedb. ...
As someone who is still getting comfortable with the command line, I found the examples and explanations very straightforward and helpful. The breakdown of each command and its syntax is particularly useful for quickly finding what I need. Can't wait to try out these commands and improve my ...
3. Install New modules into Linux Kernel In order to insert a new module into the kernel, execute the modprobe command with the module name. Following example loads vmhgfs module to Linux kernel on Ubuntu. $ sudo modprobe vmhgfs Once a module is loaded, verify it using lsmod command as sho...
For Debian-based Linux distributions like Ubuntu, we use the APT package manager. To install theechocommand, you can use the following code: sudo apt-get update sudo apt-get install coreutils # Output: # [Expected output from command] ...