`
samhe
  • 浏览: 15806 次
  • 来自: ...
最近访客 更多访客>>
社区版块
存档分类
最新评论

linux command

阅读更多

设置日期        date -d mm/dd/yyyy
设置时间        date -s hh:mm:ss
查询详细资料        man date
列出目录内容        ls -la
实现翻页        ls /user/bin | more
切换到用户目录    # cd ~
根目录            cd ../..
新建目录        mkdir testbed
硬链接            ln source link
符号链接        ln source link
删除空目录        rmdir
删除目录全内容    rm -r    : rm -r /testbed
拷贝文件        cp original* destination
移动目录文件        mv orginal destination
mv命令不能在不同的硬盘分区之间传递文件和目录.需拷贝文件,再进行删除
删除文件        rm file
编辑文档        vi file name
            pico filename
查看文档        more filename
            less filename
显示文件内容提要    cat filename
建立别名        vi~/.bash_profile  alias ls='ls -la'
find命令确定文件存入位置 file /-name file
搜索locate数据库来查找文件 locate file
查找在path中的文件        whereis file   echo $PATH
在path语句中添加新路径        vi~/.bash_profile (:)
                    source~/.bash_profile
查找文本        grep -i red ~/test
help            man command
确定当前运行的命令        jobs
                ps
把命令程序调到后台去    bg job ; ctrl+Z
把后台命令调回前台        fg job
取消正在执行的命令        ctrl+c
                ps -aux
                kill ID
                kill 9 ID
清除屏幕            clear
退出登录            logout
重启                reboot ; shutdown -r now ; ctrl+alt+del
关机                halt ; shutdown -h now

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics