rm – 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 Delete File In Linux?

How To Delete File In Linux?

Deleting files in Linux can be sometimes tricky. We have a tool named rm which is the shortcut for the word remove. In this tutorial, we will look at how to remove or delete a file in Linux with different examples and ways. rm Command Syntax rm  command syntax is the same as the most the … Read more

What Does “rm -rf” Command Do In Linux?

rm is very useful command. We can use rm command with different options. The -rf  options are one of the most used options to remove files and folders. In this tutorial we will examine the -rf options and related issues. Recursive with -r -r is used for recursive. The default behavior of rm  command is just removing given path … Read more

How to Deal With Dashed File Names Like Open, Remove?

Dash (-) have important role in Linux and other operating systems. It is used by commands to specify options and arguments. This popular use case may create problems if we have files those provides dash. Linux commands generally need explicit operations to cope with file names those starts with dash. Create File Name Starts with … Read more

How To Remove Symbolic Links In Linux?

Symbolic links provides practical solutions file name or path related problems. Symbolic links will create same file or folder with different name and path. In some situations this may cause problem and we have to remove and delete symbolic link. List Symbolic Links We can start by listing existing links especially symbolic links with ls … Read more

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 . … Read more

Useful Linux Commands

Useful Linux Commands

Linux is a command-based operating system. Most of the things are done in the command-line environment bash. In this tutorial, we will look at popular and useful commands used by Linux system administrators and users. You can access detailed tutorials simply clicking links below. tr tr command is used to translate or delete characters in the … Read more

Linux rm Command Tutorial With Examples

Linux rm Command Tutorial With Examples

Linux is a file-based operating system and actually everything is a file. Sometimes we need to clear our server from some of the files. How can we achieve that? There are alternative ways to delete files but the most popular command is rm . Remove File rm command definition is “remove files” or directories. By default, rm command … Read more

Linux Directory and File Operations

Most basic Linux usage starts with Linux file and directory operations. We will look at these operations to cover basics. In this tutorial, we will learn commands like ls , cd , mv . List Directories and Files Start of the navigation in the file system starts with listing the directories and files. We will … Read more

How To Remove Files Older Than 1 Day/1 Week/1 Month Recursively

We are decent with scripting language bash and not now hot to remove older files for example 1 day. rm command do not have this type of option to use easily. I think adding this type of feature make a lot of system administrators more happy. Remove Older Than 1 Day We will use following … Read more