Comprehension - Terminal + Linux User Guide

Reference article address:

connect to the server

  1. Connect to the server using a terminal

ssh [email protected]

  1. Connect with tools like FileZilla

Some basic commands

File operation command

Features command
View file content cat test.js
Edit file content vim test.js/vi test.js
Create folder mkdir test
Create a file touch test.js
Delete Files rm test.js

Delete folder

rm -rf test

 1. -r is recursive down, no matter how many levels of directory, delete
2. -fIs to delete directly, without displaying any prompt information

Copy code

Copy file directory and file

// willtest1 n files or folders are copied totest2

cp -a /home/test1/* /home/test2

Copy code

Directory cut

// willtest1 n files or folders are cut totest2

mv -a /home/test1/* /home/test2

Copy code

Directory rename

// willtest1 renamed totest2

mv /home/test1 /home/test3

Copy code

Compress zip and unzip zip

// compressiontest1 all files aretest1.zip
zip -r test1.zip /home/test1

 // Unziptest1.zip
unzip test1.zip


 // Compress the specified file abc.text and folder dir1
zip -r test1.zip abc.text dir1

 // Unziptest1 multiple zip package
unzip test1/?.zip

 / / Only view the contents of the compressed package without decompression
unzip -v test1.zip

 / / Check if the compressed package is completely downloaded
unzip -t test1.zip

 // Unzip the zip and download all of its contents to the first level directory
unzip -j test1.zip

Copy code

Reprinted at: https://juejin.im/post/5b9f7a4c5188255c9a77247a

Intelligent Recommendation

Linux vim editor user guide

Introduction to vim editor Vim is a text editor developed from vi. Programming functions such as code completion, compilation and error jump are particularly abundant, and are widely used by programme...

EXPECT User Guide under Linux

The public is concerned about "wonderful Linux world" Set to "Star Tag", take you to play Linux every day! EXPECT is used to automate interactive applications Software introduction...

Linux Survival Guide: User Management

Scenes surroundings method Add user Add sudo permissions to users Last continued Scenes Today, you need to deploy three servers, and you should first add 1 user, and add sudo permissions. surroundings...

Terminal setting guide, make Mac/Linux/Windows terminal to the next level

We all use terminals. It allows us to achieve all the operations we want, and in a faster and simpler way. From basic system operations to running complex scripts, it is definitely a tool that every p...

Linux terminal commands related to user rights

1, users and permissions In a Linux system, either a local login system or a remote login system must have aAccount,andDifferent accountsFor different system resourcesHave different permissions。 User ...

More Recommendation

Linux system monitoring of multi-user terminal operation

the first method Note: Every time the user logs in to log out, all terminal operations will be recorded in the HISTFILE (code specified location) location, and the corresponding log will be generated ...

Change the user name color in linux terminal

The user name is set under ~.bashrcIn the file, change the value of the PS1 variable, if not, add a line by yourself 32 represents the green foreground color,\[\e[m\]It is to turn off the color settin...

Linux modifies the colors of the terminal login user

File last line adds the following code Where [\ e [37; 40M] indicates setting color 37 represents the foreground, 40m represents the background color (can not set this parameter) Refresh .bashrc file ...

Reject Linux user terminal execution command

background Some databases can be connected to secure restrictions on logging in, even inner networks can only be connected, so that developers need to connect the database to extract related data very...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top