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 用戶發現這個有用
這篇文章有幫助嗎?

相關文章

Linux tar Command

The Linux tar command is used to compress and extract files to and from an archive. In this...

How to Install WordPress via SSH

Since WordPress is the most widely used CMS it’s installation process has been made as simple and...

SSH Execute Command on a Remote server

Via SSH you can connect to a remote server’s shell. This will allow you to execute commands on...

How to connect to your shared hosting account via SFTP with FileZilla

SFTP is a convenient way to use SSH, while also using the interface of a simple FTP. In order to...

SSH netstat command

If you wish to debug or track statistics of your network in a Linux environment you can use SSH...