Home » Linux

How to Set/Change the Date/Time in Linux

Linux set time

This simple tutorial will show you how to view, set, or update the time and date on your Linux system. You may also want to check out our article on changing the timezone in Linux. Find out the Current Time and Date Before you change the time and date, it’s worth checking what it’s currently set to – it may already be correct! The following command will display information about the time and timezone as it is currently set on your system: timedatectl The returned … Read more

Home » Linux

How to Set/Change the Timezone in Linux

Linux set timezone

This simple tutorial will show you how to view, set, or update the timezone on your Linux system. You may also want to check out our article on changing the date/time in Linux. Find out the Current Timezone Before you change the timezone, it’s worth checking what it’s currently set to – it may already be correct! The following command will display information about the time and timezone as it is currently set on your system: timedatectl The returned information will look something like this: … Read more

Home » Linux

Guide to Renaming Multiple Files in Linux

Linux rename multiple files

This guide will show you how to rename multiple files in Linux – renaming files sequentially, changing the extension, adding the date, and other renaming tasks. We’ve already covered moving and renaming files and directories using the mv command. However, renaming multiple files at once is a bit more complex. While it can be done with the mv command, some tools are built specifically for the task. Read on to find out what those tools are and how they can be used. Each tool has differences in how the renaming … Read more

Home » Linux

Linux man Command and Man Pages [Explanation/Examples]

Linux man Command

This article describes the purpose and usage of the man command in Linux and other Unix-like operating systems. Linux is a highly modular operating system, consisting of the core operating system (the Linux Kernel) and a collection of software packages that add functionality to it. These packages are generally individually maintained. Thus, each computer system will have different packages depending on what the user requires their system to do (for example, a graphic designer will have some drawing tools installed, whereas someone writing a novel may instead … Read more

Home » Linux

Linux clear Command and Clearing Shell/Terminal Screen

Linux clear Command

This article will show you how to use the Linux clear command to clear the terminal screen. Quick and easy! Clearing the Terminal/Shell Screen If you’ve been executing a bunch of commands from your Linux terminal, things can start to look a bit cluttered. It would help if you could clear the screen of previous output and commands and have a fresh start. That’s what the clear command is for. clear Command Syntax Here’s the syntax for the clear command: clear Pretty simple. There are a couple of options to change … Read more

Home » Linux

How to use the Linux locate Command, With Examples

Linux locate Command

Here’s another tool for your Linux file searching toolbox – the locate command. This explains how to use it. The locate command is specifically made for finding files and folders by their name. It’s easy to use and can search for files using patterns. This is helpful if you are looking for files with a specific type/file extension. Installing locate locate may not be installed by default on your system. To install on Debian/Ubuntu-based distributions, run: sudo apt install mlocate Or on Redhat/CentOS/Fedora: sudo yum install mlocate Linux locate Command Syntax The locate … Read more

Home » Linux

How To View and Create Hidden Files in Linux

Linux hidden files

Hidden files are files that are, well, hidden. Here’s how to find and view them on Linux-based Operating Systems. Hidden Files? Hidden files are hidden from view by default unless otherwise specified. Why would you want some files to be hidden? Usually, they are configuration files. You don’t really need to see them during your day-to-day tasks; they’d just clutter things up and get in the way. Your home directory, which includes all of your user files, has several hidden files and folders in it. These include … Read more

Home » Linux

How to Count Files in a Directory in Linux/Ubuntu

Linux Count Files in Directory

This tutorial will show you how to count the number of files/folders in a directory on Linux, both recursively and non-recursively. The wc Command The wc (word count) command counts lines and words. It’s useful here as we’ll use it to count the outputted lines from various tools which list the files in a directory or directories. The below examples will show you how to use the wc command to count files. If you want to know more about it, you can check out the full user manual by running: man … Read more

Home » Linux

How to Use the watch Command in Linux, With Examples

Linux watch command

The watch command in Linux does one thing – repeats a command and outputs the result repeatedly, letting you watch for changes. Here’s how to use it. watch Command Syntax The syntax for the watch command is as follows: watch OPTIONS COMMAND Note that: OPTIONS should be a list of options from the below table, which will alter the default behavior of the watch command COMMAND is the command that watch should repeatedly execute, which you will monitor the output of watch will run until interrupted (So press CTRL+C to exit … Read more

Home » Linux

How to Install PowerShell in Linux/Ubuntu

Install Powershell in Linux

This easy-to-follow tutorial shows you how to install PowerShell on a variety of Linux systems. What is PowerShell? Like Linux has Bash, Zsh, and other interactive shells for issuing commands to the system via the terminal, Windows has PowerShell. It’s the successor to the Windows Command Prompt. It allows the user to type commands for execution and provides features for automation and scripting. And now, it runs on Linux. This is useful if you administer Windows servers remotely or interact with Microsoft’s Azure Cloud services. Certain tasks in Office 365 … Read more