Tag Archives: UNIX

Linux For Loop

By | 2023-10-14

I chose this topic because SEO tools found it is a common search topic. The answer you need is there are multiple variants of Linux for loops. The technically correct answer is there isn’t such a thing, as Linux is just a kernel. The answer you want is how to use a Linux for loop.… Read More »

How to Undo a Yum Update

By | 2021-10-16

While uncommon, sometimes a package update can cause problems. Distributions that use yum or dnf track package changes with a transaction log. You can undo a yum update by undoing the relevant transaction(s). In order for this to work, the previous versions of any packages in the transaction must exist in the repositories. The process… Read More »

How To Add a User to Sudoers

By | 2019-10-12

To add a user to sudoers, edit the file /etc/sudoers. Many systems come with a /etc/sudoers file that gives permission to a specific group. If your /etc/sudoers has a line that looks like one of these, you can allow a user to use sudo by adding the user to that group. %sudo ALL=(ALL:ALL) ALL %sudo… Read More »

Symbolic Links vs Hard Links

By | 2019-10-06

On Linux and UNIX systems, there are two types of links. Both types are created with the ln command. They function similarly but have some differences. First, you need to understand a little bit about how filesystems work. Filesystems store meta data such as permissions, modification times, and the location of the file’s data on… Read More »

How to Zip a Folder in Linux

By | 2019-09-11

Zipping a Folder Use the zip command with the -r option to zip a folder on a Linux system. For example, to zip a folder named bigfiles, you would use the following command: $ zip -r bigfiles.zip bigfiles adding: bigfiles/ (stored 0%) adding: bigfiles/bigfile2 (deflated 98%) adding: bigfiles/bigfile3 (deflated 96%) adding: bigfiles/bigfile1 (deflated 97%) After… Read More »

How to Rename a File in Linux

By | 2019-09-10

To rename a file in Linux, you use the mv command. The mv command can also rename directories and move files into different directories. When using mv, always specify the current filename first, followed by one or more spaces, and last the new name. For example, to rename a file named my_file.pdf to your_file.pdf, use… Read More »