directory – POFTUT

Tagged: directory

How To Remove or Delete A Directory In Linux? 0

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, we will learn how to remove and delete an empty or full directory. Remove with...

0

PHP Glob() Function To Match Path, Directory, File Names with Examples

glob is a general term used to define techniques to match specified pattern according to rules related Unix shell. Linux and Unix systems and shells also supports glob and also provide function glob() in system libraries. In this tutorial we will look glob() function usage in PHP programming language. Exact String Search We will start with a simple example. We will look how to match exact string or file name with a absolute...

0

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. Find Size Of Directory We will start by simply listing the size of a directory...

0

How To Find and List Large Files and Directories In Linux?

One of the important job for System Administrators is finding and deleting large and unneeded files from Linux operating system. In this tutorial we will look how to find, sort and delete large and trash files from Linux distributions like Ubuntu, Debian, Mint, Fedora, CentOS and RHEL etc. Large Files Directories In Linux distributions there are some directories and paths where files generally holds a lot of disk space. These...

0

How To Check If File Exists In Linux Bash?

Linux bash have different file and directory related functions to create, delete, change and check existence. In this tutorial we will look how to check a file or directory if it exists. Check File Existence We will use bash test mechanism. Bash test mechanism have two formats where we can use followings. test -f FILENAME [ -f FILENAME] Square brackets format is preferred in conditional usage like ifand switch ....

How To Copy Entire Directory In Linux? 0

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 contents. Copy Only Directory In this first example, we will copy the only directory. We can just provide the source directory and destination directory names to the cp command. In this example, we will try to copy a single...

0

How To Delete Empty, Nonempty Directory In Linux

Linux file system consist of directories. A system administrator generally work with directories and related operations. In this tutorial we will look how to delete empty or nonempty linux directories. Delete or Remove Empty Directory We can remove or delete empty directories with rmdir command. In this example we will remove the empty directory named stuff .

Delete Or Remove Empty and Multilevel Directory If our empty directories are in hierarchical...

1

Windows Ren Command Tutorial with Examples To Rename Files and Folders

Windows ren command is used to rename files and folder. ren command provides command line renaming in MS DOS or cmd.exe. Rename File The most simple usage of ren command is renaming one file. In this example we will provide the source or original file name and destination or new file name. Original file name is myfile and new file name is yourfile .

Rename Multiple Files If we have bulk list of files...

0

Linux touch Command Tutorial with

Linux touch command is used to create files and change files date time related attributes like access time etc. Creating empty files is most popular use case by the way. In this tutorial we will look how to use different features of touch command. Create Empty File The most popular usage of touch command is creating empty files. For this option we do not need to provide any option. We will just put...

0

Linux Bash Directories and Changing Current Working Path

[rps-include post=6835] A simple shell command echo pof tut consist of command itself followed by arguments, separated by spaces. Also more complex command can be created. Generally simple commands are used and after execution exit status is provided by wait pid.

Directories and Paths While working with bash we use paths, file names, directories etc. As you can see below there is a tilde ~ at the end of the...

Enjoy this blog? Please spread the word :)