unix+ command Explanation

Source: Internet
Author: User
Tags ftp hostname

unix+ command Explanation
Chapter I login and exit
Login: login:passwd:
Exit: Logout/exit/ctrl+d
Password change: passwd

Chapter II Directory Operations commands
Display directory: PWD
Build directory: mkdir directoy_name
Change Directory:
Upper level:..
Root directory: CD/
Delete directory: RmDir directory_name
Delete file: Rm-rf directory_name

Chapter III File Operation commands
List file Directories: Ls-la
Show file contents: Cat filename (ctrl+s key screen roll pause, press CTRL+Q to continue display)
Display file contents by screen: more filename (q key out of more state;/string to find out where string is located)
Pagination display of File contents: PG [option] filename ()
Read file: View filename ()
Show file header: Head [option] filename (-i)
Show file tail: tail [option] filename (-FN)
Display formatted file contents: PR filename
Copy files:
CP [option] filename1 filename2
CP [option] filename ... directory
Cp-r Directory1 Directon2
Delete file: RM-RF filename
Link file: ln [option] filename linkname
ln [option] Directory pathname
Change file Read permissions: chmod a+rx filename
Change file ownership: Chown username filename
Finding files: Find pathname [option] Expression
Match in search file: grep [option] pattern filenames
Compare Files: diff filename1 Filename2
Compare files: CMP [-l] [-s] filename1 filename2
Compare files Common: Comm [ -123] filename1 filename2
Sort files: sort [option] filename
ZIP file: Compress [option] filename
Unzip file: Compress [option] filename/zcat filename
Display file type: Files filename ...
File creation: tar [option] tarfile filename
Tape Copy file: dd [Option=value]
Modified file Date: Touch filename
Count files: WC [option] filename
Check spelling: spell [option] filename ...

Fourth chapter about state information commands
Show currently Registered users: w [option] [username]
Show who is logged on to the machine: WHO
Displays the user name on the current terminal: WhoAmI
Determine command location: Whereis commands
Find non-standard commands: which LS
Date displayed: Date
Show Calendar: Cal 2015
Calculate command execution time: [command]
Display user ids: ID [option] [user]
Display Host ID: HostID
Display host Name: hostname
Display process: Ps-ef grep|weblogic NETSTAT-LNTP
Display disk space: Df-h
Display file disk space: du [option] [filename]
Display disk space limit: quota-v [username]
Display terminal options: stty [option]
Display terminal name: TTY
Recall command: History
Online Help manual: Man command_name
Create alias: alias NewName name

Fifth Chapter Network Command
Show Network address: arp-a
Display user information: Finger username
Online Conversation: Talk username
Allow or deny accept information: MESG [n/y]
Write a message to another user: Write username [ttyname]
Test Network: Ping
Remote shell command: rsh hostsname command
Remote test Bay files: rcp [-r] File NewFile
Remote registration: rlogin hostname [-l username]
Telnet: telnet hostname
File Transfer: FTP hostname
Show path to network host: traceroute hostname

Sixth Mail Command

unix+ command Explanation

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.