Linux basic commands

Source: Internet
Author: User

Wget is a free tool that automatically downloads files from the web
The TAR-ZCXF command is to pack the files and compress them first.
The TAR-ZVXF command is to unzip and repackage this file.
CD: Return to the previous level
Exit the file being edited: Wq; capital Z Z

Upload file: securecrt-file-connect sftp tab-lls (local directory)-CD to the specified directory-put file

Telnet to the Linux server: Login as:root.

Compress to zip under Win7, unzip unzip under Linux.

Linux Open a port: Nc-lp 1723 &; Check if open: Netstat-an | grep 1723;NETSTAT-NLP | grep 1723

Date: Date

data+%y/%m/%d:20150120

Calendar: Cal [2015]

Calculator: BC

Transform directory: cd ~hank: Go to Hank User's directory, equivalent to/home/hank

CD: Back to Directory

CD-: Go back to the directory you just

Cd.. /mqueue: from/val/spool/mail to/var/spool/mqueue

Show current directory: PWD [-P: Nexus file? ]

Build a new catalog: Mkdir-p test1/test2: Help resume multi-level catalogue

Delete Empty directory: Rmdir-p test1/test2: Above

Ls-l: How many directories are there?

Catalog display: Ls-a

-D: List the directory itself

-L: Include Properties and Permissions

Copy directory: cp-a:-pdr-i: The target file exists and will be queried; -R: Recursive continuous Replication

Removal: RM

Move, rename directory: MV

basename: File name

DirName: Directory Name

Cat:-b, List line number-N: Blank line also has line number

Vim: Mode: command, insert, edit; use esc/i/: Toggle

Command mode:: Q exit;: q! Forced exit: Wq save exit;: Set number Displays line numbers

Linux basic commands

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.