Linux Learning Categories: Common commands (continuous update)

Source: Internet
Author: User

Mkdir=make directorys= Creating a directory

Example:

Mkdir/data= creating the Data directory at the root/bottom

Ls=list= List Directory file

Example:

LS/= directory and file under Reagan/directory

Parameters:

-L (long) = long format

-D (Directorys) = view Directory

Cd=change directory= Changing directory path

Related concepts:

Relative path and absolute path:

Windows absolute Path: E:\Study\Video, the path from the beginning (drive letter)

Linux absolute path: Cat/etc/sysconfig/network-scripts/ifcfg-eth0, path from root/start

Relative path: Does not start from/root, does not start from the beginning of the path

Example:

CD/= switch to the root directory

Pwd=print work directory= Print working directory (show current path)

Touch= creating a file or updating a file timestamp

Vi=windows Notepad, simple.

Example:

VI Oldboy.txt

vim= complex editor, Shell programming or command use

echo= print out content, with ' > ' or ' >> ' to overwrite or append content to a file

Special symbols:

REDIRECT will clear all previous data in the file

>>: Append redirect, append content, append only required content at end of file


This article from "Study_osmond" blog, declined reprint!

Linux Learning Categories: Common commands (continuous update)

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.