Linux basic commands (better memory than bad writing)

Source: Internet
Author: User
Tags touch command

&. 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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.