What is the command to open the terminal in the Hongqi Linux operating system - Introduction to the command to open the terminal

Time: 2021-01-21Source: Huajun Software TutorialAuthor: Aotuman

What is the command to open the terminal in the Hongqi Linux operating system? Some friends may not know it yet. The editor below will introduce the command to open the terminal in the Hongqi Linux operating system. Friends in need should come and take a look.

1.jpg

1. Use of terminal

1.Open

1) Right-click on a blank part of the desktop to open the terminal

2) Use the shortcut key ctrl+shift+t on the active terminal

3) Set the run shortcut key (alt+F2) –> open the run window –> enter gnome-terminal

4) Use the system menu to open the terminal

2.ctrl+(shift+) plus sign to enlarge font

ctrl+(shift+) minus sign to reduce font size

3.Exit

1)exit command

2) Turn off the mouse manually

2. Basic commands

Command prompt:

[root@cc ~]#

root represents the current logged in user

cc ˆ represents the host name

~ ˜ represents the current working directory/home directory of the current account root ~ = /root

# means the root (super administrator) user

$  represents ordinary users

1.ls (View the contents of the current directory)

All commands must be followed by spaces

#ls [Parameter][Directory]... //Switch to this directory and view the contents of this directory

#ls - --help //(ls help manual)

#ls -a //View all files in the current directory (including hidden files)

#ls -lh //Humanized display of query results

#ls -l //Long format display is equivalent to #ll

#ls D* //List all files starting with D (excluding hidden files) =>#ls | grep ‘^a’

#ls a b c //List the files under the a, b, c files

!Expansion: .(dot) represents the current directory. For example:

[root@cc etc]# ls . = [root@cc etc]# ls =[root@cc ~]# ls /etc //View the contents under etc, which is equivalent to /root, for example:

 [root@cc ~]# ls  = [root@cc ~]# ls .  =[ root@cc ~]# ls ./=[root@cc ~]# ls /root    //View the contents of the home directory

2.date (time command)

#date      //Show current date and time Tue Nov 3 13:21 :06 CST 2020

#date +%y%m%d%H%M%S  //Display the current date and time 201103132347

#date +%F  //Display the current date and time 2020-11-03

#date +%D  //Display the current date and time 11/03/20

#date -s 10:00 //Set the time to 10:00 Tuesday, November 3, 2020 10:00:00 EST

3.cd (switch path command)

#cd      //Go home, return to the home directory

#cd +path //Switch to this path

#cd -     // Return to the last directory visited

#cd …/    // Switch to the previous directory (can be superimposed –> #cd …/…/  …/ => Switch to the previous directory)

4.Path

The role of path: locating files, divided into absolute path and relative path

Absolute path: from the root directory to the exact path of the file

//[root@cheng ~]# cd etc/sysconfig/network-scripts (~==>/root)

Relative path: Mark from the current path to the path of the file under the current path

//[root@cheng sysconfig]# cd network-scripts

#touch   //Create a file in the current directory

#mkdir  /Create a directory in the current directory

#pwd  //Display the current path

5. Shortcut keys

Ctrl + a    //Move to the beginning of the command line (equivalent to home)

Ctrl + e    //Move to the end of the command line (equivalent to end)

Ctrl + p    //The previous command in the history (equivalent to the up arrow key)

Ctrl + n    //Next command in history (equivalent to the down arrow key)

Alt + .      //Print the last part of the previously executed command with spaces as delimiters (print the last parameter of the previous command)

history    //View executed historical commands

Ctrl + l    //Clear the screen clear

Ctrl + c //Termination command

Ctrl + z    // suspend command

The above is the introduction of the command to open the terminal in the Hongqi Linux operating system brought by the editor. I hope it can help everyone.

Related articles更多>>

Popular recommendations