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

Bash Function Tutorial

Bash Function Tutorial

Bash is a command-line interface for the Linux and Unix operating systems where also provides some programming features like functions. The purpose of the bash function is to execute single or multiple commands again and again just calling the function not all commands. Also, the programming languages provide functions but they are more advanced than … Read more

Linux find Command Tutorial

Linux find Command Tutorial

Linux provides the find command in order to find files and directories. The find command is executed via the command line interface and it is also provided by the Unix and other related Unix-based operating systems. The find command can be used to search files and folders according to their names, creation date, modification date, … Read more

Linux curl Command Tutorial with Examples

Linux curl Command Tutorial with Examples

A curl command is a tool used to transfer data between different hosts. These hosts are generally called servers where different protocol types are supported by curl. The curl supports protocol types like FTP, FTPS, HTTP, HTTPS, IMAP, SCP, SFTP, SMB, TFTP, etc. Interestingly email protocols lşike IMAP, IMAPS, POP3, etc. are supported by the … Read more

What Is SSH (Secure Shell)?

SSH or Secure Shell is a network protocol used to connect remote systems in a secure way. The SSH provides easy access to the remote systems command-line interface. SSH is very popular between network devices, Linux systems in order to access their management command-line interfaces. SSH provides authentication and authorization features and asks for login … Read more

Linux tail Command Tutorial with Examples

Linux tail Command Tutorial with Examples

Linux provides the tail command in order to read specified files. The default behavior of the tail command is reading the specified files ends with the specified lines. By default, the tail command reads the last 10 lines of the specified files. tail Command Syntax The tail command has the following syntax where generally a … Read more

Using SSH Configuration File

Using SSH Configuration File

SSH is a popular remote management protocol that is secure, flexible, easy to use. SSH provides a lot of features in order to make SSH usage easy and straightforward. As SSH provides a lot of different features these features can be configured in different ways. The most interactive way is using parameters with the ssh … Read more