本文内容可能已过时或不再适用,请结合实际情况谨慎参考。

为什么要学用 Linux?

  • 服务器:一统江湖

  • 开源程序大多先支持 Linux,且支持的最好

  • 你的程序最终要运行在 Linux 服务器上

    • 爬虫

    • 数据分析

Windows 用户如何使用 Linux?

  • Windows 10 Linux 子系统

    • WSL(Windows Subsystem for Linux)
  • Virtualbox 虚拟机

  • VMWare 虚拟机

  • Windows + Linux 双系统

  • Linux 单系统

  • 推荐 Linux 发行版:Ubuntu

Linux 基本命令

  • 文件和文件夹操作

    • ls,cd,pwd,mkdir,rmdir

    • cp,mv,rm,in,find

    • touch,echo,file/stat

  • 文件内容操作

    • cat,more,less,tall,head

    • grep,sort,uniq,

    • awk,sed

    • 压缩:tar,gzip,gunzip,......

  • 文本编辑:vi/vim

  • 网络:

    • wget,ping,netstat

    • ssh,screen,tmux

  • 系统:

    • top,ps,kill,killall,free,df,fdisk,uname

    • shutdown,reboot,history

    • which,whereis,su(switch user)

评论