Setting the time zone on Linux

Setting the timezone under Linux

The objective of this guide is to show how to set the system time zone on Linux. This can be done from both GUI and command line, so we’ll be covering both methods in the following instructions.

Setting your system time and time zone is usually done when initially installing Linux. If you skipped that step during installation, have switched time zones, or your system clock has drifted out of sync, we’ll help you get it fixed.

In this tutorial you will learn:

  • How to set time zone via command line (systemd)
  • How to set time zone via GNOME GUI
  • How to set time zone via KDE GUI

Read more

Configuring a USB drive to mount automatically in Linux

Automatically mount USB external drive

The default behavior of most Linux systems is to automatically mount a USB storage device (such as a flash drive or external drive) when it gets plugged into the computer. However, this is not the case across every distro, or sometimes configurations go awry and you may find that your device is not being automatically mounted. You may also just want your storage device to mount when you plug it in before booting.

Read more

How to install jdownloader on Ubuntu/Debian Linux

How to install jdownloader on Ubuntu/Debian Linux

The jDownloader application allows you to download files from many links simultaneously. It comes with handy features like pausing and resuming downloads, extracting contents from compressed archvies automatically, and setting maximum bandwidth usage, among other things to help you manage all of your downloads. It is an open source tool available for Linux systems and will make bulk downloading much easier for you.

Read more

Regex match filename

Regex match filename

The Linux command line comes with many options that we can use in order to search for files. One of the most powerful features is regex (regular expression) pattern matching. This convention allows us to search our file system based on very granular name patterns found inside the file names – for example, the ability to search for all files that start with an A and end with a K. In regex, this would be written ^A.*K$.

Read more

Executing remote commands via SSH

Executing commands remotely with ssh and output redirection

The SSH command can be used to remotely login to a server running an sshd daemon. This allows Linux administrators to perform variety of administrative jobs. However, SSH is more powerful than just providing a user with remote shell access, as it can also be used to automate remote command executions, like running simple backups and downloading the backup file locally.

In this guide, we’ll go over a few different command line examples to show how you can execute commands on a remote system via SSH, as well as direct the output back to your local machine.

In this tutorial you will learn:

  • Examples for remote command execution via SSH

Read more

Checking the current runlevel on a Linux system

How to check a current runlevel of your Linux system

Before systemd came into existence, most major Linux distributions ran a Sys-V style init system. Sys-V used seven different “runlevels” to determine which processes to start on the system. For example, runlevel 3 was typically reserved for the command line and its related programs, whereas runlevel 5 would launch a GUI and all the processes required for it. Results may vary, depending on the distro in question.

These days, the vast majority of Linux distros have adopted systemd as their init system. Some distros still use Sys-V, where the implementation of runlevels as described above still exists. On systemd systems, the concept of runlevels is still alive, but they have been adapted into systemd “targets.”

Remnants of Sys-V still exist on some systems, where commands like runlevel still work. But some modern systemd distros have eradicated this support completely. In this guide, we’ll show you how to check the current runlevel on Linux.

In this tutorial you will learn:

  • How to check the current runlevel

Read more

Example of simple bash script ftp client

Example of simple bash script ftp client

If you need to use FTP to upload some files to a server every so often and want to save yourself some time, you can make a simple Bash script to transfer the files quickly. Rather than entering the username, password, and directory manually, we can get our Bash script to do this tedious legwork for us. In this tutorial, you will see an example script to make FTP transfers a cinch on a Linux system.

Read more