zoukankan      html  css  js  c++  java
  • linux 常用 命令 笔记二

    wget 下载,得到网络上的内容

    grep 文件搜索工具

    EveryThing is a file in the linux system

    安装 cowsay

    sudo apt-get install cow-say

    cowsay ctrl + D 来结束输入

    stdout 输出 文件指针

    cat file1>file2 file2中以前的内容就没有了

    cat file1>>file2 file2中最佳file1中的内容

    也可以这个样子 : cat 本来就是连接两个文件的

    cat file1 file2 >file3 这个样子,file1 file2 叠加放到file3中

    错误信息重定向 : 2> 就可以啦
    ls ssdslfj 2>file

    管道线 |

    权限问题

    ls -la 这个样子就可以产看权限问题了

    chmod +w . 可以改变权限问题

    w 写权限 删除,重命名

    :wq ZZ 保存

    x有执行权限 就可以当成一个程序来执行

    ps aux|less 这个是查看进程 并且分页显示

    Ubuntu 系统中的快捷键
    ctrl + shift + C 复制
    ctrl + shift + V 黏贴

    ctrl + shift + T 打开一个新的窗口

    aux 是产看进程情况

    kill 结束进程

    location 查找

    location --regexp 正则表达式

    updatedb 更新文件系统数据库

    locate xx

    find 查找当前文件夹

    find .|grep .txt 查找.txt文件 ,利用管道符
    find .| -type f 查看文件
    find .| -type d 查看文件夹

    rsync -r 文件夹 远程站点 上传文件到服务器

    浪漫家园,没事就来逛逛
  • 相关阅读:
    java---随机点名
    java实现窗体JFrame加载动态图片
    微信小程序--登陆页面
    java基础--随机数 猜数字游戏
    jQuery表单验证
    js获取Id,标签,类的几种选择器封装
    轮播图
    关于mysql安全
    PHP5.4开启zend opcache缓存
    ccs3中icon转换为字体的方法
  • 原文地址:https://www.cnblogs.com/lovezbs/p/4458093.html
Copyright © 2011-2022 走看看