delete – POFTUT

Vim Editor Commands Cheat-sheet

vim or vi is very powerful text editor used in Linux systems. As they provide a lot of features and used from command line they have a lot of commands and shortcuts. In this page we will list these commands as a cheat-sheet. We will look most used command and shortcuts in this tutorial which makes this … 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

Git – File Operations

Normal file operations like deleting, moving, changing file name can be done in git. Removing File A tracked file can be removed liked below. $ git rm LICENSE   rm ‘LICENSE’ $ git status On branch master Changes to be committed:  (use “git reset HEAD <file>…” to unstage)        deleted:    LICENSE rm removes file After remove operation … 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

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