&. Create a file under command 1.txt 2.txt 3.txt
&. Create a file under command 1-100.txt
Touch command: Create an empty file if there is time stamp information such as the access time of the file Atime
Common commands:
uname command: View the currently used Linux kernel version information. Cat/proc/cpuinfo command: View the current host's CPU model, specifications and other information. Cat/proc/meminfo command: View memory information for the current host. Hostname command: View the full name of the current host. Shutdown-h now command: Shut down the machine. Shutdown-r now command: Reboot. PWD command: Displays the location of the working directory where the user is currently located. CD command: Changes the user's working directory to a different location. (.) Current working directory (..) The previous directory (~ user name) of the current directory specifies the user's host directory, omitting the user name for the current directory (-) The last working directory of the LS command: Displays the contents of the current directory, including subdirectories and ask prices for your related attribute information. (-L) displays all subdirectories and files, including hidden directories and files, in a long format, including information such as the last update time of the permission size (-a). (-D) displays the properties of the directory itself, instead of displaying the contents of the directory (-h) in units such as k,m, rather than the default bytes. Du command: Statistics the size of disk space (-a) for the specified directory or file (-a) statistics include all files and not just the system directory (-H) to display statistical results in units such as k,m (-s) only the total size of the statistics parameters, not the subdirectories, the file sizes. mkdir command: Used to create a new empty directory. (p) Create nested multi-level catalogs ln commands at once: Create a connection file for a file or directory, (shortcut) (-s) create a soft link CP command: Copy files or directories (-f) Overwrite files or directories with the same name without reminders, forcing replication (-i) when overwriting a file or directory with the same name, remind the user to confirm (-p) the permission to keep the source file, which is the main and time tag, and the property is unchanged. (-R) when replicating a directory, it means recursively copying all files and subdirectories RM command: Used to delete the specified file or directory (-f) To delete files or directories without reminders, Force delete (-R) to delete the directory when used, to recursively delete the entire directory tree (-i) when deleting a file or directory, remind the user to confirm the MV command: Transfer the specified file or directory to the location, if the target location is the same as the source location, the effect is equivalent to renaming a file or directory which command: Find the user's command file location directory Find command: Find file or directory (-name) based on the name of the target file to find, you can use * and? Wildcard (-size) lookup based on the size of the target file (-user) lookup based on whether the file belongs to the target user (-type) based on the type of file
Linux basic commands (better memory than bad writing)