- There are two things to know about doing Linux:
- First know where you are (desktop ...). )
- Case sensitive
- PWD: View your current directory
"/" stands for: root directory
- Cd:
- CD (change directory) + Space +/: switch to the root directory.
- CD +a: Switch to the A directory.
- Cd.. : Switch to the previous level directory
- ls: View all files in the current directory
- File color Meaning:
- White or black: normal file
- red : Compress files
- Blue : Catalog file
- light blue : Link file (soft link)
- Yellow : Device file (/dev)
- cyan : Removable file (/bin;/sbin)
- Pink : Picture file
- Ls-l: Lists the current directory detail file information. (Default byte representation)
- First column: D, directory;-: file.
- LS-LH: A list of humanized display files. Human
- Ls-a Show hidden files
- Vim. Test writes a file to create a hidden file (dot, add "." in front of the file.) means to create a hidden file)
- Create folders, and even empty will account for capacity.
- Vim Name: Edit file name--Press i/a key to enter insert mode, after writing the file, press ESC, then press shift+ Colon, then enter wq--carriage return, the file is saved and exited.
- 4 L: New modified file added 4 lines, 131 characters.
- Cat filename: Viewing the contents of a file
- More filename: Split-screen view of the contents of the file (space: by page, carriage return by row) is displayed as a percentage.
- mkdir (make directory) name: Create directory Name
- MV A/b: Move file A to Folder B (Directory B)
- The file cannot be moved to a file, MV File1 file2 b/: Two files exist file 1 replaces file 2. That is, the file 2 name does not change, but the content becomes the file in the file.
- Mkdir-p dir1 dir2 dir3 dir4 dir5:-p recursive creation of directories.
- Tree dirname: Displays the dirname of the directory
- Tree: Displays the current directory tree structure (points: represents the current directory)
Python's basic commands for learning--01linux basics