Linux/macOS Basis¶
Resources¶
You may refer to one of those resources to learn more about Linux.
UNIX Tutorial for Beginners: One of the most popular online tutorials by electronic engineers
Introduction to Unix: by Andrew Newman (a geophysics professor at Georgia Tech)
Introduction to Computing: by Peter Shearere (a geophysics professor at USCD)
Basics of Linux and the vim editor: by Dr. Allen McNamara (a geophysics professor at MSU EES)
The Linux Command Line: 中文版 (Github翻译项目) | 中文版 (看云)
Linux 101: by USTC LUG (recommended)
Linux学习笔记: by 华为工程师 (提取码 7v19)
Checklist¶
Below is a checklist of what you should know about Linux/macOS and command lines:
Familiar with the file system, and especially the HOME directory
Commands for files and directories:
cd
,ls
,pwd
,mkdir
,rmdir
,cp
,rm
,mv
Commands for files:
cat
,touch
,head
,tail
,which
Meaning of file permissions
rwx
andchmod
commandAbsolute paths and relative paths
The environment variable
PATH
Understand what’s purpose of file
~/.bashrc
How to use input/output redirection
>
,>>
,<<
How to use PIPE
|
How to use wildcards
?
,*
,[]
to match mutiple files or directoriesHow to compress and uncompress files using
tar
,gzip
,bzip2
Command for data processing
awk
,cut
,grep
,wc
,sort
,uniq
What is a Shell (bash/csh) script? https://www.tutorialspoint.com/unix/unix-what-is-shell.htm
Learn the vim editor, which is the only text editor available on Linux servers.