zoukankan      html  css  js  c++  java
  • Linux学习笔记:基本概念、常用命令

    基本概念

    Console - 监视器、键盘。

    Virtual Console – 允许在一个物理Console上进行多个log session。

    Man 命令 - 包含技术的细节,要求使用者对命令或资源有一定的了解。Shell内部命令不在man的范围内。

    系统目录

    /bin – 基本系统命令。

    /dev - 设备文件,访问系统设备和资源。

    常用设备对应的文件名

    fd – floppy disk

    console – monitor

    tty – serial port

    hda – whole first hard disk

    hda1 – first partition

    sda – SCSI device

    lp – printer

    /usr - 包含可选的命令

    /bin - most of the executable, not essential to the system.

    /etc

    /include

    /lib

    /man

    /local

    File Link

    作用:给一个文件多个名称。

    在系统中,通过inode number标识文件。

    文件名是到inode的link。

    目录是文件,包含link-to-inode关联信息的列表。

    Hard link - 直接链接到文件的inode。必须和目标文件在同一个文件系统内。Link和目标文件由相同的inode number。

    Symbolic link - 没有链接到inode;Permission由目标文件决定;可以链接到不存在的文件;

    常用命令

    File

    • cat/head/tail/less  -- read
    • tar/gzip/zip/bzip2 -- archive
    • locate/find/grep  -- search; find -r path --name 'object'; find | grep 'object';
    • chgrp/chown/chmod/groups/suid/sgid -- rights
    • sed/awk -- line process;   sed "s/Mon/Tue/g" file;  awk -F ':' "{print $1, $2 }" file

    资源

    • ps/kill/pstree
    • jobs/fg
    • top/free/df/du
    • lsof - list open file

    shell

    • ;, &&, ||
    • >, >>, <, |
    • history, !, alias, $()

    Network

    • ifconfig/ifup/ifdown/ethtool
    • ip/route/arp
    • netstat/ss; netstat -tnl
    • ping/trace
    • host/dhclient
    • ssh/sftp/scp/wget/curl
    • tcpdump

    Security

    • openssl
    • iptables; iptables -A INPUT -s 10.10.10.0/24 -j ACCEPT

    Debug

    • gdb
    • strace
    • perf
    • time

    Help

    • man -k, -f, -t
    • info
    • whois/whereis/which
  • 相关阅读:
    JQuery使用总结
    JS应用总结
    Base64数据转成Excel,并处理Excel的格式
    HTTP压缩
    谷歌开发工具解析
    .Net LIst排重
    MySql日志系统
    .Net生成PDF流
    Mysql MVCC
    JAVA期末综合课程设计
  • 原文地址:https://www.cnblogs.com/weichsel/p/1844806.html
Copyright © 2011-2022 走看看