Linux Tutorials - Learn Linux Operating System
In Linux cat command used to concatenate one or more files together. By default cat command reads the file and print output to the terminal.
To store stderr into a variable we need to use command substitution.
But, by default, command substitution only catches the standard output(stdout). To capture stderr we need to use 2>&1 redirector.
In this tutorial we are going to learn How to use Output redirection and Pipes in Linux Bash environment.
In Linux bash there is Two types of Outputs, stdout (Standard Output) and stderr (Standard Error).
How to check how many users are logged in to the Linux system? There are few commands we can use to show currently logged in users in Linux Operating System.
Curl is a powerful utility that can use to both download and upload data to servers. The curl command in Linux Supports many kinds of protocols, including HTTP/HTTPS, FTP, SMTP, SMB and More.
This tutorial Mainly Focuses on HTTP and FTP Protocol. First we will see how to use curl command to retrieve data through the HTTP Protocol, Then we will use curl with FTP protocol to Download and Upload files.
Download the latest version of the WordPress installation package using the wget command and curl command.
Most Linux distributions use systemd as their init system. In systemd, we use the systemctl command to change runlevels. Also, you should know that, in systemd we identify runlevels as “targets”. For Example multi-user mode called as multi-user.target.
In this tutorial we are going to learn how to use dnf command to install and manage packages in RPM-based Linux distributions.
The dnf command is the improved version of the yum package manager which is used in Redhat based Linux distributions. Currently Fedora use dnf command as its package manager and we expect the next major release of Redhat and CentOS will use dnf command as the their software installer.
In this tutorial we are going to learn how to unzip zip files in Linux Operating System. The Zip file compression Format mostly used in Microsoft Window and often you will need to unzip zip files that ported from a windows computer.
To unzip zip file in Linux, we need to install unzip package. After we install unzip command, we can extract zip file from the command line or from the GUI, if you are using Linux Desktop.
In this Linux tutorial we are going to learn how to update bash in Linux Operating System. We will look how to update bash (GNU Bourne Again shell) in both Redhat Based Linux distributions and Debian Based Linux Distributions.
In this tutorial we are going to learn how to schedule cron jobs to run everytime after system reboot in Linux.
The Linux crontab has a time option called @reboot which allows to run a cron job once after reboot every time.
In this article I am going to show you how to print calendar in Linux terminal. In the Linux terminal, we can get the calendar using the cal command.
Open the Linux terminal and type cal, and you will get the calendar of the current month.
In this Linux tutorial we are going to learn how deny specific user from running scheduled task using Linux cron job.
Every Linux user can add their own cron jobs using crontab -e command. But what if we want to disable specific user from running cronjobs ?
In this tutorial we are going to learn how find Public IP Address of our computer using Linux curl command.
Normally, if we want to find the public IP Address we use, we go to google and search “what is my ip address”. But if you use Linux, you can get your public IP Address from the command line using curl command.
The curl command with ifconfig.me argument will show your public IP Address.
In this Linux tutorial we are going to learn how to how to check bash version in Linux. To get bash version in Linux, we can use either bash command or $BASH_VERSION environment variable.
Easiest way to check bash version is to run bash –version in the command prompt.
In This Linux Tutorial we are going to Learn How to make directories using mkdir Linux Command.
In Linux mkdir command use to create directory in Linux. If no path specified new directory will be created inside the current working directory.