zoukankan      html  css  js  c++  java
  • Ubuntu部分命令的使用简介

    1、查看USB设备

    lsusb         #查看系统中的usb设备
    lsusb –v        #查看详细的usb设备信息

     2、ubuntu mount u盘

      第一步:查看U盘信息 

    sudo fdisk -l 

      得到类似下面这样的信息

    Disk /dev/sdb: 8027 MB, 8027897856 bytes
    14 heads, 22 sectors/track, 50907 cylinders
    Units = cylinders of 308 * 512 = 157696 bytes
    
    Device Boot Start End Blocks Id System
    /dev/sdb1 8 50908 7838628 7 HPFS/NTFS

      很容易看出来,这是一块U盘,并且只有一个分区 sdb1,且文件系统为NTFS;

      第二步:挂载U盘到指定节点

    sudo mount -t ntfs-3g /dev/sdb1 /mnt/windows/u

            然后你就可以对U盘上的内容进行访问了(注意:/mnt/windows/u为你要挂载到的节点)。

    3、查看系统信息

    #查看版本信息
    cat /etc/issue
    sudo lsb_release -a
    
    #显示详细系统信息
    lshw
    lshw  -short
    lshw  -C memory
    
    #显示内核缓冲区系统控制信息
    dmesg
    
    #print system information
    uname -a

    4、清理系统垃圾

    sudo apt-get autoclean   #清理旧版本的软件缓存
    sudo apt-get autoremove  #删除系统不再使用的孤立软件
    sudo apt-get clean     #清理所有软件缓存

    5、禁启触摸板

    sudo rmmod psmouse  #禁用触摸板  
    sudo modprobe psmouse #启用触摸板

     6、网络命令

    1 ifconfig - configure a network interface
    2 iwconfig - configure a wireless network interface
    3 route - show / manipulate the IP routing table
    4 netstat - Print network connections, routing tables, interface statistics,masquerade connections, and multicast memberships
    5 nc / netcat— arbitrary TCP and UDP connections and listens
    6 ping, ping6 - send ICMP ECHO_REQUEST to network hosts
    7 telnet — user interface to the TELNET protocol
    8 ftp — Internet file transfer program

     7、解压tar.xz文件命令

    #将xxx.tar.xz解压成 xxx.tar
    xz -d -k xxx.tar.xz  #使用 -k 参数来保留被解压缩的文件
    
    #解压xxx.tar
    tar xvf xxx.tar

     8、打开文件命令:xdg-open

    # MAN #
    xdg-open - opens a file or URL in the user's preferred application

    以上命令为本人感觉比较实用的命令。

    =======================================================================
    中文名:高洪臣
    英文名:Gordon Scott
    E-mail:gaohongchen01@163.com
    =======================================================================
  • 相关阅读:
    [翻译]windows下 连接到 bitnami的phpmyadmin
    Redmine 和GitBlit仓库服务器整合
    Xshell出现要继续使用此程序必须应用到最新的更新或使用新版本
    Codeigniter 列出所有控制器和控制器的方法(类似路由列表)
    FastStone Capture 文件名设置小记录
    [转]sourceforge文件下载过慢
    Cacti 添加 CPU 监听
    Cacti 发送警告邮件
    尝试让Virtualbox的Ubuntu可以调整分辨率
    Html5+离线打包创建本地消息
  • 原文地址:https://www.cnblogs.com/gaohongchen01/p/3694702.html
Copyright © 2011-2022 走看看