Tag: linux system administration

  • Network File System (NFS) Administration on Linux

    Network File System (NFS) Administration on Linux

    Network File Systems, also shortened NFS, are file systems that can be accessed over the network. Compared to filesystems that may be local to your machine, network file systems are stored on distant machines that are accessed via a specific network protocol : the NFS protocol. NFS belongs to the large family of file sharing […]

  • How To Configure Linux as a Static Router

    How To Configure Linux as a Static Router

    As a network administrator, you probably know how costly routers can be. If you are configuring a complex network architecture, you might need Cisco or Netgear routers, as they embed advanced features for network management. However, if you plan on creating a small network for your company, there might be a cheapier alternative. What if […]

  • How To Copy Directory on Linux

    How To Copy Directory on Linux

    Copying directories on Linux is a big part of every system administrator routine. If you have been working with Linux for quite some time, you know how important it is to keep your folders well structured. In some cases, you may need to copy some directories on your system in order revamp your main filesystem […]

  • How To Count Files in Directory on Linux

    How To Count Files in Directory on Linux

    As a system administrator, you are probably monitoring the disk space on your system all the time. When browsing directories on your server, you might have come across directories with a lot of files in them. Sometimes, you may want to know how many files are sitting in a given directory, or in many different […]

  • Bash If Else Syntax With Examples

    Bash If Else Syntax With Examples

    When working with Bash and shell scripting, you might need to use conditions in your script. In programming, conditions are crucial : they are used to assert whether some conditions are true or not. In this tutorial, we are going to focus on one of the conditional statement of the Bash language : the Bash […]

  • How To Set Environment Variable in Bash

    How To Set Environment Variable in Bash

    As a system administrator, you probably know how important environment variables are in Bash. Environment variables are used to define variables that will have an impact on how programs will run. In Bash, environment variables define many different things : your default editor, your current username or the current timezone. Most importantly, environment variables can […]

  • How To Chown Recursively on Linux

    How To Chown Recursively on Linux

    Chown is a command on Linux that is used in order to change the owner of a set of files or directories. Chown comes with multiple options and it is often used to change the group owning the file. However, in some cases, you may need to change the owner of a directory with all […]

  • How To Ping Specific Port Number

    How To Ping Specific Port Number

    Pinging ports is one of the most effective troubleshooting technique in order to see if a service is alive or not. Used by system administrators on a daily basis, the ping command, relying on the ICMP protocol, retrieves operational information about remote hosts. However, pinging hosts is not always sufficient : you may need to […]

  • LVM Snapshots Backup and Restore on Linux

    LVM Snapshots Backup and Restore on Linux

    In our previous tutorials, we have seen that implementing LVM volumes can be very beneficial in order to manage space on your host. The Logical Volume Management layer exposes an API that can be used in order to add or remove space at will, while your system is running. However, there is another key feature […]

  • Logical Volume Management Explained on Linux

    Logical Volume Management Explained on Linux

    On Linux, it can be quite hard to manage storage and filesystems and it often needs a lot of different commands to move data. Traditional storage is usually made of three different layers : the physical disk (whether it is a HDD or a SSD), the logical partitions created on it and the filesystem formatted […]