Linux Crontab Format

Linux Crontab Format

Linux cron is used to schedule and run jobs one time or periodically. The cronjobs are stored inside the crontab file which has a simple column-based format. The crontab is a text file where columns are separated with spaces or tabs. In this tutorial, we examine the crontab format. Crontab Format The crontab format is … Read more

How To Stop All Docker Containers?

How To Stop All Docker Containers?

Docker can run multiple containers at the same time. In some cases, we may need to stop all currently running containers in an easy way with a single command. In this tutorial, we provide different ways to stop all docker containers. Stop All Docker Containers with “docker stop” Docker provides the docker stop command in … Read more

Bash Variable Tutorial

Bash Variable Tutorial

Linux bash is a command-line interface and programming interface for the Linux, Unix even MacOS operating systems. One of the most popular and useful features of the bash environment is the variables. Bash variables are used to store different data and information for the current user, processes, system, databases, etc. Define Bash Variable Variables can … Read more

How To Install Go (GoLang) In Linux?

How To Install Go (GoLang) In Linux?

Go is a popular programming language which is created by Google. The Go programming language provides simple, reliable, and efficient applications. The Go programming language is similar to the mainstream programming languages like C, C++, Java, etc. The Go programming language also named as GoLang . There are different tools that are developed with Go. … Read more

How To Zip Folder/Directory In Linux?

How To Zip Folder/Directory In Linux?

Zip is a popular compression format and tool used to put files in a single and compressed file with the *.zip extension. The zip provides a lot of advantages like compression and saving space, easy and fast transfer, single file, etc. Linux distributions like Ubuntu, Debian, RHEL, CentOS, Mint, etc. provide the zip command for … Read more

How To Use Bash Case Statement?

How To Use Bash Case Statement?

The Linux bash provides case statement in order to create conditionals where one of the multiple choices can be selected according to the specified condition. Event there is the if statement the case statement provides more readability and is easy to use. The case statement is very similar to the popular programming languages provide switch..case … Read more

How To Count Files In Directory On Linux?

How To Count Files In Directory On Linux?

Linux system administrator may require to get a count of the files for a specific path which can be the current working directory or another path. There are different ways to count files of a directory where the files can be counted recursively or for the only specified directory. Count Files with find Command The … Read more

How To Follow Redirects with Curl?

How To Follow Redirects with Curl?

The HTTP protocol provides different attributes and behaviors where one of them is Redirection. HTTP redirect is used to redirect a request from a specific URL to another URL. The redirect can be applied temporarily or permanently. The curl is a popular command-line-based tool to make HTTP requests which also supports the HTTP redirect feature. … Read more

How To Recursively Grep All Directories and Subdirectories?

The grep command is a great tool to search all directories and subdirectories for their contents. The grep command recursive option is used to make a search in all specified paths and subdirectories for all files and child files for the specified term. Search Current Working Directory Recursively with grep Command The first example of … Read more

What Is “chmod 755” and How To Use It?

What Is "chmod 755" and How To Use It?

In Linux the chmod command is used to change permissions for files and directories. The chmod can be used to set owner, group and other permissions by using read , write and execute . These permissions can be used in different ways where the chmod 755 is popular permission used by system administrators. Simply the … Read more