linux directory – POFTUT

How To Remove or Delete A Directory In Linux?

How To Remove or Delete A Directory In Linux?

Linux provides different commands in order to remove or delete directories and files. But in some cases, this may not work as expected and we can get a message like rmdir: ‘dir’ Directory no empty which simply means when we try to delete a directory with rmdir command it is not completed. In this tutorial, … Read more

How To Get The Size Of Directory In Linux From Command Line?

While working with Linux we may need to get the size of the specific directory. In GUI there are file managers like Dolphin, Gnome, Nautilus etc. But what if we need to get the size in command line. In this tutorial we will look how to get single or multiple directories sizes and sort them. … Read more

How To Change Group Ownership Of Files and Directories with chgroup in Linux?

Linux provides different tools for the similar or same functionality. chgrp  is the shortcuts for change group where used to change files group ownership. In this tutorial we will look different uses cases for chgrp  and examples. chgrp provides similar functionality to chown Syntax Syntax is simple where we provide options , group name and files … Read more

How To Copy Entire Directory In Linux?

How To Copy Entire Directory In Linux?

Linux provides different tools to copy directories entirely. The most popular and well-known tool is cp. In this tutorial, we will look at how to copy Linux directories entirely or specific content. Copy Only Directory In this first example, we will copy the only directory. We can just provide the source directory and destination directory … Read more