自学自用 = 网易云课堂(细说Linux-从入门到精通视频教程)

视频地址

https://study.163.com/course/courseMain.htm?courseId=983014

介绍

本篇博客,旨在记录视频学习的要点,所以格式随意,且没有文字描述, 方便本人日后自考和回忆,有兴趣的朋友可以评论讨论。

原文地址https://www.cnblogs.com/clockq/p/10007493.html

  • ls -a -A -d -l -i -h
  • mkdir -p。rmdir
  • cp -p
  • touch
  • cat tac head tail -n -f
  • more less
  • chmod
  • find -name -iname * ?-size + - -user -group -amin -cmin -mmin -type -inum -a -o -exec/-ok CMD {} ;
  • locate -i 。updatedb
  • which。whereis。whatis
  • date。cal
  • grep -i -v -n
  • who。w
  • 压缩
    • .gz。gzip gunzip
    • .tar。tar -cf -xf
    • .tar.gz。tar -zcf -zxf
    • .zip。zip -r unzip
    • .bz2。bzip2 bunzip2
    • .tar.bz2。tar -jcf -jxf
  • last
  • lastlog -u
  • traceroute
  • shutdown -h -r -c now = halt poweroff “init 0”
  • logout
  • reboot = “init 6”
  • cat /etc/inittab。 runlevel
  • /etc/passwd = “用户名称:密码标识:uid:gid:用户备注:家目录,login shell”
  • /etc/shadow
  • /etc/gpasswd
  • /etc/gshadow
  • 1./home/user。2./var/spool/mail/user。3./etc/skel/
  • useradd -u -g -G -c -d(dir) -s
  • /etc/default/useradd
  • passwd -S -l -u --stdin
  • usermod -u -c -G -L -U
  • chage -l -d(date) 0 user
  • su - root
  • gpasswd -a(add) -d(delete)
  • getfacl
  • setfacl -m [d(default):]u:user:w+x -R file
    -x -b。 ugom
  • chmod u+s“4755” file
  • chattr {+-=} i a(append)
  • lsattr -a(all) -d
  • visudo = “vim /etc/sudoers”
  • df -h -a(all) -t(type)
  • du -h -s -a
  • fsck
  • dumpe2fs
  • mount -l(look) -a(auto) -t(type) -o(other)
  • /etc/fstab ="uuid或分区号:挂载点:文件系统类型:挂载参数:dump备份:fsck检测"
  • free -g -m -h
  • dos2unix
  • >> + 2>> = &>>
  • export var 。 set(=look) 。 unset 。 env。
  • PATH。PS1
  • $0。 $1 - $9。${10+}。$#。$*。$@
  • $?。$$。$!
  • read -n -t -p -s var
  • $(())
  • /etc/motd
  • cut。 printf。 awk。sed
  • sort -r -t -k -n
  • wc -l -w -m
  • chkconfig —list
  • /etc/rc.d/rc.local
  • ps -le = “ps aux”
  • pstree -p -u
  • top
  • kill -1 -9 -15 。killall
  • pkill -9 -t
  • dmesg
  • file /bin/ls
  • lsb_release -a
  • crontab -e -l -r “分(/时) 时(/天) 天(/月) 月(/年) 星期(/周) CMD”
  • dump 。restore
原文地址:https://www.cnblogs.com/clockq/p/10007493.html