


1.ls
Whether you are from the root directory or from a folder. ls can list all files in the folder.
2.cd
cd is also often used in windows; it is used to switch between directories. When the length of the entered file name reaches a unique level, pressing the tab key will automatically add the complete file name;
3.mv
is the abbreviation of move , as the name suggests, it moves a file or folder from one directory to another.
The syntax format is
The directory where mv is located and the directory you want to move
4. There are also some shortcut keys. It is slightly different from window;
CTRL K cuts the text from the cursor to the end of the line
CTRL Y pastes the text
CTRL E Move the cursor to the end of the line
CTRL A Move the cursor to the beginning of this line
ALT F Jump to the next space
ALT B Return to the previous space
ALT Backspace Delete the previous word
CTRL W Cut the word before the cursor
Shift Insert Paste the text into the terminal
Ctrl D Log out
5.mkdir
Create a folder. You can create it in the root directory, or of course you can cd to a place where you want to place the file;
6.at
Run you at a specific time The program
7.rmdir
Deletes a directory, only used to delete empty directories
8.rm
If you want to delete files, the rm command is what you want. It can delete files and directories. To delete a file, type rm testfile, or to delete a directory and the files in it, type rm -r.
9.touch
Similar to mkdir, a new directory will be created
10.locate
This command is the command you use to find files in the Linux system
11.ps
is not the photoshop we usually use, but View all current processes;
12.jobs
View the tasks running in the background of the current terminal
13.kill
(1) Check the jobnum through the jobs command, and then execute kill %jobnum
(2) Check the process number PID through the ps command, and then execute kill %PID
If it is a foreground process If so, you can terminate it by directly executing Ctrl c
14. Switching between front and back processes
(1) fg
Function: Switch the process in the background Move the command to the foreground and continue running
If there are multiple commands in the background, you can first use jobs to view jobnum, and then use fg %jobnum to call out the selected command.
(2) crtl z
Function: Put a command being executed in the foreground into the background and put it in a paused state
(3)bg command
Function: Change a command that is paused in the background to continue execution in the background
If there are multiple commands in the background, you can first use jobs to view jobnum, and then use bg %jobnum to call out the selected command to continue Execution
For more related questions, please visit the PHP Chinese website:linux video tutorial
The above is the detailed content of Summary of the most common basic commands in Linux. For more information, please follow other related articles on the PHP Chinese website!

Shell scripts are powerful tools for automated execution of commands in Linux systems. 1) The shell script executes commands line by line through the interpreter to process variable substitution and conditional judgment. 2) The basic usage includes backup operations, such as using the tar command to back up the directory. 3) Advanced usage involves the use of functions and case statements to manage services. 4) Debugging skills include using set-x to enable debugging mode and set-e to exit when the command fails. 5) Performance optimization is recommended to avoid subshells, use arrays and optimization loops.

Linux is a Unix-based multi-user, multi-tasking operating system that emphasizes simplicity, modularity and openness. Its core functions include: file system: organized in a tree structure, supports multiple file systems such as ext4, XFS, Btrfs, and use df-T to view file system types. Process management: View the process through the ps command, manage the process using PID, involving priority settings and signal processing. Network configuration: Flexible setting of IP addresses and managing network services, and use sudoipaddradd to configure IP. These features are applied in real-life operations through basic commands and advanced script automation, improving efficiency and reducing errors.

The methods to enter Linux maintenance mode include: 1. Edit the GRUB configuration file, add "single" or "1" parameters and update the GRUB configuration; 2. Edit the startup parameters in the GRUB menu, add "single" or "1". Exit maintenance mode only requires restarting the system. With these steps, you can quickly enter maintenance mode when needed and exit safely, ensuring system stability and security.

The core components of Linux include kernel, shell, file system, process management and memory management. 1) Kernel management system resources, 2) shell provides user interaction interface, 3) file system supports multiple formats, 4) Process management is implemented through system calls such as fork, and 5) memory management uses virtual memory technology.

The core components of the Linux system include the kernel, file system, and user space. 1. The kernel manages hardware resources and provides basic services. 2. The file system is responsible for data storage and organization. 3. Run user programs and services in the user space.

Maintenance mode is a special operating level entered in Linux systems through single-user mode or rescue mode, and is used for system maintenance and repair. 1. Enter maintenance mode and use the command "sudosystemctlisolaterscue.target". 2. In maintenance mode, you can check and repair the file system and use the command "fsck/dev/sda1". 3. Advanced usage includes resetting the root user password, mounting the file system in read and write mode and editing the password file.

Maintenance mode is used for system maintenance and repair, allowing administrators to work in a simplified environment. 1. System Repair: Repair corrupt file system and boot loader. 2. Password reset: reset the root user password. 3. Package management: Install, update or delete software packages. By modifying the GRUB configuration or entering maintenance mode with specific keys, you can safely exit after performing maintenance tasks.

Linux network configuration can be completed through the following steps: 1. Configure the network interface, use the ip command to temporarily set or edit the configuration file persistence settings. 2. Set up a static IP, suitable for devices that require a fixed IP. 3. Manage the firewall and use the iptables or firewalld tools to control network traffic.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

Notepad++7.3.1
Easy-to-use and free code editor

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
