rm commands in Linux

To remove (or delete) a file in Linux from the command line, use either the rm (remove) or unlink command.


rm command is used to remove files or directories as shown below.

$ rm file1
$ rm -rf my-files

rm directory command

rmdir command  for  delete/remove empty directories as follows.

$ rmdir /backup/all

No comments:

Post a Comment

how to call ssh from vs code

 To call SSH from VS Code, you can use the built-in Remote Development extension. This extension allows you to open a remote folder or works...