How To Make A Directory Public In Linux?

Linux provides permissions in order to allow or deny access to a directory. By default, a directory is only accessible by its owner after the directory creation. But sometimes we may want to make a directory public which means everyone can access, read, write and execute the directory content. In this tutorial, we examine how … Read more

Move Directory In Linux

Move Directory In Linux

Directories are used to store other directories and files in a hierarchycal way. Some time we may need to move directories to the different paths or inside another directory. Linux provides the mv command in order to move directories. There are different ways to move directories in Linux like multiple move, verbose move, approve every … 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 Rename A Directory In Linux?

How To Rename A Directory In Linux?

Directories or folders are used to store files and directories in Linux operating systems. The directory has also been named a folder. There are different ways to change a directory or folder name in Linux. Rename Directory with mv Command The mv command is the most popular command to move, rename files and directories. In … Read more

How To Rename File In Linux?

How To Rename File In Linux?

Renaming files is one of the most popular daily operations in Linux administration. Files can be renamed using different methods and tools like command-line interface, GUI, File Manager, etc. A renaming file changes a file name into a new one where the old file name becomes absolute after the file rename operation. In this tutorial, … Read more

Delete/Remove File In Linux

Delete/Remove File In Linux

Files can be removed or deleted by using different commands in Linux. The removal of the file deletes related file system information from the file system table. While deleting a file there are different ways like prompt deletion, display verbose output, etc. Delete/Remove File with rm Command The rm command is a defacto command to … Read more

List Directories In Linux

List Directories In Linux

Directories or folders are used to store different items like files, directories, folder data, etc. While working with these items we may need to list them especially directories. There are different commands those can be used to list directories. In this tutorial, we will learn how to list directories in Linux. List Directories with ls … Read more

How To Get Size of Directory/Folder In Linux?

How To Get Size of Directory/Folder In Linux?

Directories or folders can contain multiple files and directories. These multiple files and directories use some disk space and have a size. But when we list the files and directories we see that the directory size is listed as 4096 bytes or 4KB. This is the directory standard size which does not contain the files … Read more

Linux mkdir Command Tutorial with Examples

Linux mkdir Command Tutorial with Examples

The mkdir command is used to create directories and folders in Linux operating system. The mkdir name comes from the “make directory” which can be also expressed as “make dir” where the “dir” is generally used for directory and there is a command with the same name. Also, the mkdir command can be used to … Read more

Linux du Command Tutorial with Examples

Linux du Command Tutorial with Examples

The du command is used to get information about the disk usage in Linux. The du command provides a lot of useful information about disk usage like directory size, file size, free percentage, etc. Print File Sizes as Byte The du command is used to list given files and directories sizes in the byte unit. … Read more