Linux Tutorials - Learn Linux Operating System
In this tutorial we will learn how to use apachectl command to manage Apache HTTP Server on Linux. The apachectl commands include with the Apache installation in all major Linux distributions, including Debian, Ubuntu, CentOS 7, Red Hat and Fedora. With it, you can start, stop, and restart the HTTP daemon on your web server.
There are various reasons why you might want to find which Linux distribution you are using or the OS version of your Linux system. To know the version of Linux installed on your computer, there are many options. One of the options is the lsb_release command.
Iftop, one of the most popular command line tool for monitoring network traffic in Linux. Iftop command can quickly show you which source using most bandwidth by listing its IP address or hostname at the top of the output.
In this tutorial we will learn how to install phpMyAdmin on CentOS 7 for PHP 7.
Epel repository provides a phpMyAdmin package for PHP 5, But it is not compatible with PHP 7. For PHP 7, we need to manually download and setup phpMyAdmin web interface.
We are going to need a web server, a database, and PHP in order to serve dynamic PHP websites. LAMP is a term describing web server that includes all of these software packages.
CentOS 7 LAMP stack includes, following components.
How do we disable a Linux user temporarily without deleting the user account?
We can easily lock user account using the passwd command with -l option.
The wget is a Linux command line tool for download web pages and files from the internet. The wget command in Linux support HTTP, HTTPS as well as FTP protocol. In this tutorial we will see how to use wget command with examples. Install wget command on Linux. Download Web pages with wget command. Save
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.