HowTo: RPM List Files

To list the files contained in an RPM package, you can use the rpm command with the -ql option. Here’s how to do it: Open a terminal and run the following command to list the files contained in an RPM package: rpm -ql package-name Replace package-name with the name of the RPM package that you … Read more

Linux Create A Bootable USB Pen

To create a bootable USB pen drive in Linux, you can use the dd command to write the ISO image to the USB drive. Here’s how to do it: Insert the USB pen drive into a USB port on your computer. Open a terminal and type the following command to find the device name of … Read more

Bash History Display Date And Time For Each Command

By default, the history command in Bash shows a list of recently executed commands with their respective line numbers. However, it does not display the date and time when each command was executed. (www.utahcnacenters.com) To show the date and time for each command in the Bash history, you can set the HISTTIMEFORMAT environment variable. Here’s … Read more

AIX UNIX: Enabling Jumbo Frames

To enable jumbo frames on an AIX UNIX system, you can follow these steps: Check if your network adapter supports jumbo frames: To enable jumbo frames, you need to have a network adapter that supports it. You can check if your adapter supports jumbo frames by running the following command: entstat -d en0 | grep … Read more

Bash Shell Read a Line Field By Field

In Bash shell, you can use the read command to read input line by line, and then use the IFS (Internal Field Separator) variable to specify the delimiter character(s) that separate the fields. Here is an example script that reads input from a file called data.txt and extracts the fields delimited by commas: #!/bin/bash # … Read more