SSH rm command

If you wish to remove a file or folder from your Linux system you can use SSH rm command. In this article, we will show the basic usage of the SSH rm command.

Delete a file using SSH rm command

rm myFile.txt

Delete a file without asking for permission with SSH

rm -f myFile.txt

Delete a file using WildCard

This will delete all .txt files

rm -f *.txt

Delete all files and the directory with SSH rm

rm -rf /path/to/directory

Delete file and display information

rm -v myFile.txt

Delete file while being prompted for it

rm -i myFile.txt
  • 0 Korisnici koji smatraju članak korisnim
Je li Vam ovaj odgovor pomogao?

Vezani članci

SSH ip command

If you wish to obtain information about your server’s IP on a Linux machine using SSH you can use...

SSH echo command

One of the most useful commands in a Linux environment is echo. With it, you can provide output...

SSH history command

If you wish to find what commands you have previously executed in a Linux environment you can use...

SSH cd command

SSH cd command is mainly used to navigate in your Linux environment. In this article, we’ll show...

SSH mv command

If you would like to move a file from one location to another on your Linux Dedicated Server or...

Powered by WHMCompleteSolution