首页 > 其他 > 详细

unix basic commands

时间:2015-08-11 09:58:59      阅读:174      评论:0      收藏:0      [点我收藏+]

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

$man man

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

$sudo apt-get install python2.7

4.su - change user ID or become superuser

cc@debian:~$su
Password:
root@debian:/home/cc#su -- cc
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.)

$man more|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

原文:http://www.cnblogs.com/BugQiang/p/4720060.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!