Month: February 2020

  • 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 List Git Tags

    How To List Git Tags

    On Git, tags are used in order to define commits in your history that may be more important than others. When you are performing a merge commit, right before deploying, you might want to tag this commit. This way, if you choose to go back to the previous version, you will be able to find […]

  • How To Install Samba on Debian 10 Buster

    How To Install Samba on Debian 10 Buster

    If you are working on a small to medium entreprise network, you probably have dozens of drives and printers that need to be shared. Besides the NFS protocol, there are plenty of other network protocols that can be used in order to share resources over a network. The CIFS, short for Common Internet File System, […]

  • 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 […]

  • How To Push Git Branch To Remote

    How To Push Git Branch To Remote

    In Git, branches are commonly used in order to develop features independently from the main workflow. Git is a decentralized versioning system : as a consequence, you have local and remote branches on your repository. When you are working locally, you are committing to your local branch, but what if you wanted to share your […]

  • 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 […]

  • 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 […]