UNIX basic commands

Source: Internet
Author: User

1. Man-an interface to the on-line reference manuals

$manMans

2. apt-advanced Package Tool

See Also:apt-cache, Apt-get, apt.conf, sources.list

$APT-cache search MySQL

3.sudo-execute a command as another user (sudo allows a permitted user to execute a command as the Superuser or another User, as specified by the security policy.)

$sudoinstall python2. 7

4.su-change user ID or become superuser

cc@debian: ~$supassword:[email protected]:/home/cc#succ cc@debian: ~$

5. Ls-list Directory Contents

$ls -l
$ls -la

6. Pwd-print Name of current/working directory

$pwd

7. Mkdir-make Directories

$mkdir test1

8. Mv-move (rename) files

$mv test1 test2

9.rm-remove Files or directories

$rm -fr test2

10.more, Less-file perusal filter for CRT viewing (a filter for paging through text one screenful at a time.)

$Mansmore |  Less

Note: ' | ' is pipeline, see more on wiki about pipeline

11.grep-grep, Egrep, Fgrep, rgrep-print lines matching a pattern

$ls -la| grep Django-web

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