Professional Documents
Culture Documents
01 Linux基础及常用命令
01 Linux基础及常用命令
2015.07
rgz@sdu.edu.cn
Linux
Kernel
Shell bash
Applications
Linux (1/4)
Linux (Linux
Kernel)
Linux
Linux (2/4)
Linux
Shell
Shell:
Shell: (Shell
script)
:
init -> login -> passwd ->
shell
Linux (3/4)
Linux
Shell
Interpreter
User:
ls command
shell
Kernel
Linux (4/4)
Linux
Linux
Xwindow
Internet
i=1
do while (i<=1000)
useradd stu$i
i=$i+1
enddo
6
Linux
Linux
date cal clear echo
who
mail write mesg
man
Linux Linux
$login: UserName
$ Ctrl-d
$ exit
$ logout
login:
# ,$
Linux date
$date
#date -s 20041229
#date -s 12:23:23
10
2009
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
11
2004
, 12
$cal 00
$cal 99
$cal 01
12
.
.
\:
> diskette
please insert diskette
13
Linux who
$who
$whoami
denise
14
$mail joe
Subject:meeting
Dontforget about the meeting today!
<ctrl-d>
<ctrl-d> !!
Cc: <enter>
$
15
? t 2
U .
N .
? & as the mail subsystem prompt(
)
16
mail f
17
Linux wall
18
Linux write
write
$write <username>
$write joe
$write sam
<ctrl-d> .
EOF
<ctrl-d>
19
Linux mesg
mesg write wall
root
.
$mesg n
$mesg y
20
Linux
<backspace>
<ctrl-c>
<Ctrl-d>
<ctrl-u>
Shell.
21
Linux
Windows.
\ ,
22
Linux
$ls -a l
$ls -al
$ls -l test
$ls --help
23
Linux man
,
man man
man who
man -a who
man -k keyword
keyword
<Space bar> :
<Enter>
:
<b> :
<f> :
<ctrl-c> or q: man .
24
Linux man
:
NAME :
SYNOPSIS : .
DESCRIPTION :
[ ]
a | b
{ }
:[ ]
: a , b.
:
25
man
1
2
3
4
5
6
7
8
9
/dev
/etc/passwd
root
Linux
26
bash help
#help
#help
#help
#help
if
set
help
27
w
last
ps
kill
top
which
df
du
su
lsmod
wget
find
locate
chroot
head
tail
id
sleep
last
dmesg
ping
28
/proc
cat
cat
/proc/cpuinfo
/porc/meminfo
cat
kallsyms | grep
start_kernel
29
30