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

How to add conditional expressions to aggregate functions in MySql

MySQL filtering timing of where conditions and ha...

Detailed explanation of Vue form binding and components

Table of contents 1. What is two-way data binding...

Vue template configuration and webstorm code format specification settings

Table of contents 1. Compiler code format specifi...

MySQL join buffer principle

Table of contents 1. MySQL join buffer 2. JoinBuf...

A brief discussion on mysql backup and restore for a single table

A. Installation of MySQL backup tool xtrabackup 1...

Is it necessary to create a separate index for the MySQL partition field column?

Preface Everyone knows that the partition field m...

Use of CSS3's focus-within selector

Pseudo-elements and pseudo-classes Speaking of th...

Detailed installation process of MySQL 8.0 Windows zip package version

The installation process of MySQL 8.0 Windows zip...

How to use lodop print control in Vue to achieve browser compatible printing

Preface This control will have a watermark at the...

Use CSS3 to implement button hover flash dynamic special effects code

We have introduced how to create a waterfall layo...

MySQL 8.0.12 Installation and Usage Tutorial

Recorded the installation and use tutorial of MyS...

Vue.js implements calendar function

This article example shares the specific code of ...