How to delete folders, files, and decompress commands on Linux servers

How to delete folders, files, and decompress commands on Linux servers

1. Delete folders

Example: rm -rf /usr/java

The /usr/java directory and all files and folders under it will be deleted

2. Delete files

Example: rm -f /usr/tomcat/conf/server.xml

The file /usr/tomcat/conf/server.xml will be deleted forcefully

3. Decompression

1. Unzip to the current directory

Example: tar -zxvf jdk-8u131-linux-x64.tar.gz

Will unzip jdk-8u131-linux-x64.tar.gz to the current directory where it is located

The above method of deleting folders, deleting files, and decompressing commands on Linux servers is all the content that the editor shares with you. I hope it can give you a reference, and I also hope that you will support 123WORDPRESS.COM.

You may also be interested in:
  • Detailed explanation of the problem that the space is not released after the Linux file is deleted
  • Linux file management command example analysis [permissions, create, delete, copy, move, search, etc.]
  • How to deal with the problem that the file is deleted but the space is not released in Linux
  • Linux unlink function and how to delete files
  • Linux implements scheduled backup of MySQL database and deletes backup files older than 30 days
  • Linux regularly backs up the MySQL database and deletes previous backup files (recommended)
  • 5 Ways to Clear or Delete Large File Contents in Linux
  • Comparison of the efficiency of different methods of deleting files in Linux

<<:  A little-known JS problem: [] == ![] is true, but {} == !{} is false

>>:  Detailed installation tutorial of mysql-8.0.11-winx64.zip

Recommend

Linux cut command explained

The cut command in Linux and Unix is ​​used to cu...

How to successfully retrieve VMware Esxi root password after forgetting it

Prepare a CentOS6 installation disk (any version)...

Implementation of Vue large file upload and breakpoint resumable upload

Table of contents 2 solutions for file upload Bas...

Summary of practical methods for JS beginners to process arrays

join() method: connects all elements in an array ...

JavaScript color viewer

This article example shares the specific code of ...

Docker Getting Started Installation Tutorial (Beginner Edition)

Doccer Introduction: Docker is a container-relate...

10 Popular Windows Apps That Are Also Available on Linux

According to data analysis company Net Market Sha...

How to add a paging navigation bar to the page through Element UI

need Add a paging bar, which can jump to the page...

MySQL SQL statement analysis and query optimization detailed explanation

How to obtain SQL statements with performance iss...

Vue project realizes login and registration effect

This article example shares the specific code of ...

Solution to the docker command exception "permission denied"

In Linux system, newly install docker and enter t...