Linux Common commands

Source: Internet
Author: User

1.pwd View the current folder

2.CD switch Directory CD/switch root directory CD. Back to the top level

3.CP replication

4.ls view files Under current directory-l-h-A

5.vim.test Creating a hidden file

6.vim Edit file Vim (file name)

7.cat Viewing file contents

8.more Slowly view file contents

9.mkdir Create directory-p recursive create rmdir delete empty directory

10.MV cut files, can also be renamed

11.yum Inistall tree to open the tree command

12.tree Display tree structure directory

13.DF-HL Viewing disk usage

14.top Viewing system performance

15.ps-ef Viewing processes

16.kill Kill Process-9 forced end

17.find Find

find/-name wenjianming Accurate Query
Find/-name *wenjianming* fuzzy query by file name
Find/-size +90m |xargs ls-lh view files by size

18.uname-a Viewing the system kernel

19.date View time and date

20.shutdown-h now shutdown hilt, Poweroff shutdown

21.rebool restart

22.cal Display Calendar

23.BC Calculator

24.man Help Manual--help Help

25.init 5 into graphical

26.init 3 Entering text

27.df-h Show Partition space

28.ln-s Soft Connection equivalent to shortcut ln-s (source file) (destination file)

ln hard connections Synchronize with each other to back up ln (source file) (destination file)

30.whoami Show Current User

31.ifconfig View NIC IP a

32.service Network restart restart NIC

33.if down eth0 off the NIC

Ifup eth0 Open Network card

35.clear Clear Screen

36.history history

37.ps aux view Background program

38.echo output

39.> one-way redirect overrides

40.>> bidirectional redirection Append Content

41.free Viewing memory

42.chmod to file chmod + WRX (file name) chmod 777 (file name)

43.chown change owner, owning group Chown (owner): (Owning Group) (file name)

44.useradd Add user passwd Create password

45.userdel Delete User

46.VI/ETC/PASSWD Viewing password files

47.sudo Invoking administrator rights

48.su-(user) switch User

49.nslookup Domain Name resolution

Mound List all partitions of the system

Linux 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.