Learning experience for Linux systems first article

Source: Internet
Author: User
Tags clear screen create directory directory create file copy

1.linux Open Terminal, two of the simplest methods, the first, direct ctrl+alt+t; second, alt+f2, input gnome-terminal; more complex is not recommended.
2.linux There is no concept of the drive letter, only the path, divided into relative path and absolute path; The absolute path is represented as:/path name, a detailed path from the root directory or home directory, and a relative path that represents the path of the current directory.
3.linux system case-sensitive, terminal ls view, blue color for the folder, the white color for the file, use Ls-l to view the file, the left of the letter D means that these are folder information, for-the content of these questions, and the other-L- H can represent the size of the folder from standard bytes as a human understanding, such as 1024kb=1m, so that we look more intuitive. -LH and-l-h as a result,-lha represents all files.
4. Hidden files and hidden folders are used to configure system application files in the system.
5.touch+ folder name, no file to create the file, the file exists on the last modification of the file date, the same as the hidden file.
6. When using the Mkdir+ folder, to confirm the file and folder name, the Linux system does not allow the same name files and folders exist.
7.linux System use RM command to be careful, file deletion will not be restored, and the graphical interface is different.

  1. ~ Indicates home directory.
    9. Use CP or MV and other commands, preferably with-I, to ensure that the file other problems can be confirmed, because the operation is not recoverable, remember.
    Here are the commands:
    The command corresponds to the English function
    LS List view the contents of the current folder
    Ls-a Ls-all Show All files (including hidden files)
    Ls-l displaying details as a list
    Ls-h with-l to display file sizes in a humane way
    PWD Print Work Directory view the folder directory where you are currently located
    CD Change Directory "Toggle folder
    CD back to top-level directory
    CD folder name into the directory where the folder name is located
    Cd. Enter this catalogue
    Cd.. Go to the top level directory
    CTRL + C ends the current command "
    CD ~ Returns the current user's home directory
    CD-can be switched back and forth in the most recently used two directories
    Touch Touch "If the file does not exist, create a new file
    Touch 123.txt Create 123.txt
    Touch. 123.txt Create a hidden 123.txt "
    mkdir make directory Create directory
    RM Remove "Remove the file name of the binding
    RM 123.txt
    Rm. 456.txt "
    Clear clear Clear screen
    Command "-options" "parameter" parameter parameter "" means optional command
    Command--help-followed by options--followed by command query commands
    Man Command manual Command manual
    Wildcards act as special symbols to represent other characters.
      • Represents any number of characters Fu Cha see the file can be used to represent more than one character, and key characters in combination with
        ? On behalf of any one word Fu Cha see the file can be used? Represents another character, used in conjunction with a key character
        [] represents the group of characters to match and
        ? Usage, just add a group of characters that need to be matched in [], as long as it belongs to this group of characters, it can be displayed
        mkdir Create a new directory
        Mkdir-p a/b/c/d/e folders and files cannot create multiple recursive folders with the same name, the command means to create an E folder below the C folder under the B folder under the A folder below the D folder
        Rm-r the contents of a recursive delete directory, delete the folder must add this parameter
        Rm-f forced deletion, ignoring nonexistent folders without prompting
        Rm-r * Delete all files in directory
        Tree displays the directory, if not, go to the package download install, command: sudo apt-get install tree
        Tree ~ Displays the root folder's trees directory
        CP source file destination file copy files and directories
        "Eg:cp ~/documents/123.txt./desktop/489.txt
        CP ~/documents/123.txt./desktop "Copies the 123.txt under Documents to Desktop and is named 489.txt, and if the file name does not want to change, point directly to the target directory.
        Cp-i source file destination file copy files and directories are prompt before overwriting files
        Cp-r source file The destination file will be recursively copied to all subdirectories and files under the directory, but the directory file must be a directory name
        MV Move
        MV source file destination files and folders can be moved, directory cannot be moved
        EG:MV ~/desktop/test ~/documents/test The test folder under Mobile Desktop to the Documents under the test
        Mv-i source file target file pass CP in the same way that the-I prompt principle

Learning experience for Linux systems first article

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.