Liunx some common commands

Source: Internet
Author: User

One: Linux installation command
1:DPKG is used to install, create, and manage software package tools.
Dpkg-i Package.deb #安装包
Dpkg-r Package #删除包
Dpkg-p package #删除包 (including profile)
Dpkg-l Package #列出与该包关联的文件
Dpkg-l Package #显示该包的版本
dpkg--unpack Package.deb #解开deb包的内容
dpkg-s keyword #搜索所属的包内容
Dpkg-l #列出当前已安装的包
Dpkg-c Package.deb #列出deb包的内容
Dpkg--configure Package #配置包

2:apt-get command is apt package management tool
Apt-get Update #软件包列表更新
Apt-get Install PackageName #安装一个新软件包
Apt-get Remove PackageName #卸载一个已安装的软件包
Apt-get Upgrade #更新所有已安装的软件包

Two: Linux network operation command
1:ping is used to test the connectivity of networks between hosts.
Ping www.linuxde.net


Three: Linux compression operations Command
1:TAR-CVF Filedir #打包, not compressed
2:TAR-ZCVF Filedir #打包, compressed with gzip
3:TAR-JCVF Filedir #打包, compressed with bzip2
4:TAR-ZTVF Filedir #查看包中文件
5:TAR-ZXVF Filedir #文件解压
6:gzip file #压缩文件
7:gzip-d file.gz #解压文件

Four: Linux system commands
1:date Display set system time and date
2:cal display or specify a calendar
3:uptime Show Current Time
4:W displays a list of users who have logged in to the system
5:whoami Printing Valid user names for the current period
6:cat/proc/cpuinfo Displaying CPU information
7:cat/proc/meminfo Display Memory Information
8:man command CommandName Displays the manual information

V: Link remote server command SSH
1:ssh [email protected]
2:ssh-p port [email protected]

Six: File Operations Command
1:cat M1 (displays the contents of the file ml on the screen)
2:cat M1 m2 (simultaneous display of file ml and M2 content)
3:cat M1 m2 > file (merging Files of ml and M2 into file files)
4:SCP [Email Protected]:/home/abc.gif/home

Liunx some common 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.