Learning python, the third day notes

Install python command: sudo apt install ipython

Font enlarged terminal ctrl + shift + =
reduced font ctrl + -

ls list to view the contents of a folder in front of hidden files ls -a view there. The hidden files
ls -l to view the folder details ls -lh more detail
on behalf of any number of characters ls 1 beginning with a file ending with a 1 * 1 1 file
? It represents a single character ls 1? Only one word beginning with a file of 1
[] represents the character set [12345] .txt [1-5] can be

pwd View current folder pwd wrok directory

cd Change folder change directory cd ... back to the parent directory
cd directly to home directory
cd - switched in the last two directories

touch New File

Create a directory mkdir make directory mkdir -pa / b / c / d progressive create folders

rm remove deleted files rm -r delete a folder

clear clear screen

Desktop Desktop

rm -r delete a folder

command --help和man command

Use man operation keys and more space Next
Enter the next line
b roll back a screen
roll screen before a f
q Exit
/ word search

tree file directory and file directory tree -d display only

Copy move files

cp Copy files cp source destination file to overwrite the file prompt -i -r copy directories

mv move files and folders are prompted to overwrite the file -i

View Files

cat View full contents of the file more split-screen display file contents

cat -b to display the number of rows to write blank lines -n display

grep text search

-n Display line numbers

-v does not contain all rows

-i ignore case

^ ^ A beginning of a line search Row tail Search Search a End of the line a search

Guess you like

Origin blog.csdn.net/tiantianjingyu/article/details/90678700