Tag Archives: Linux

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 »

Beginner’s Guide to find

By | 2019-05-04

The Linux find program is very powerful. It has a small learning curve, but a little time spent learning find now will save you a lot of time later. The Linux find command isn’t actually part of Linux. It is a program that is part of the GNU findutils project. It can be installed on… Read More »