sudo short-term root
newline Shift+Enter
Ctrl+Alt+T Start the terminal
Ctrl+Shift++ Enlarge the window (including the font in the window)
Ctrl+- Abbreviation window (including the font in the window)
cd is the desktop input cd to enter the desktop directory, the main function is Jump to the directory specified by the cd command
~/desktop $ python hb/ha.py Call the py document in the hb file on the desktop
Return to the upper-level command cd ..
After opening the terminal, it will be in your folder by default (main folder, with documents, pictures, Music, the one of the template), you can use pwd to view the current position. For example:
tianhuaiwang@tianhuaiwang-B5400:~$ pwd
/home/tianhuaiwang
After that, if you want to enter the home folder in the GUI from the terminal, the cd file is for example:
tianhuaiwang@tianhuaiwang-B5400:~$ cd file
tianhuaiwang@tianhuaiwang-B5400:~ /Document $ pwd
/home/tianhuaiwang/Document
ls The main function is to list the file/directory information in a directory.
Create a folder format: mkdir [options]
The [options] in the DirName command generally have the following two types:
-m is used for Set the access permissions for the newly created directory, you can also use the chmod command to set
-p to create the upper-level folder (or directory) when needed, if the folder already exists, it is ignored.
Example 1: Create a folder named "hello" under the desktop
mkdir desktop/hello
Example 2: Create a folder named "hello" under the desktop, and assign permissions to the folder, the permissions are 666
mkdir desktop 666 Desktop/hello
delete folder [rm]
format: rm [options] [options] in the DirName
command generally have the following types: -i ask for confirmation one by one before deleting; -f even if the original file attribute is set to read-only, delete it directly , no need to confirm one by one; -r delete the directory and the following files one by one.
Example: (1) Delete the hello folder under the desktop rm -r desktop/hello
(2) Delete all C language program documents; ask for confirmation one by one before deleting rm -i *.c
linux terminal command
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=327015348&siteId=291194637
Recommended
Ranking