Professional Documents
Culture Documents
13 2008
1
: /
remstereo
:
remstereo555@yahoo.com
remstereo@gmail.com
:
:
. open suse 11
.
. . 2
opensuse 11
openoffice.org 2.4
: .
.
.
3----------------------------------------------------------- :
: 10------------------------------
man
info
xman
manual
whatis
apropos
: 24--------------------------------------------
whereis
locate
: 29-----------------
-a 29------------------------------------------------------
pushd
popd
cd
pwd
ls
dir
-b 45----------------------------------------------
5
touch
cat
tac
file
more
less
head
tail
wc
grep
zgrep
diff
-c 62---------------------------------------------
mkdir
tree
-d 65----------------------------------
rm
cp
mv
# * 73-----------------------------------
ln
: 76-----------------------------------------
-a 76--------------------------------------------------------
tar
#
#
cpio
-b 83--------------------------------------------------------
gzip
: 85-------------------------------------
mcedit
vim gvim
pico
nano
emacs
xemacs
sed
ispell
: 106------------------------------------
-a 106--------------------------------------------
106--------------------------------------------------------
fdisk
cfdisk
7
-b 121-------------------------------------
mkfs
-c ) (123------------------------
#
df
: 130--------------------------
130-----------------------------------------------------------
-a 132---------------------------------------
# groupadd
# groudmod
# groupmod
#
/etc/group
-b 135-------------------------------------
# useradd
# usermod
# userdel
# 143---------------------------------
/etc/passwd
/etc/shadow
# disable /etc/shadow
-a group
8
-b passwd
#
#
id
groups
gpasswd
passwd
-c permission
#
:
:
chmod
-a
-b
chown
chgrp
170-------------------------------------------
174------------------------------------------------------------
# ) manual (
# : man
: )
-
........... ( .
:
man
-1 ls :
ahmed@the-game:~> man ls
-2 ) ( f
ls :
ahmed@the-game:~> man -f ls
:
10
)ls (1p
)ls (1
ls .
-3 ) (k
fdisk :
)cfdisk (8
)fdisk (8
down arraw
up arraw
page down
11
page up
manual
# : info
man info .
:
info
-1 ls :
ahmed@the-game:~> info ls
: info
b
down arraw
12
up arraw
Enter
? shift +
info
info
info
# : xman
manual man
)
) ( 9 1 .( man
13
manual page :
sections
options search
:
14
manual page .
Apropos .
## : manual
} {9-1
:
} 1 { .
} 2 { .
} 3 ) ( { .
} 5 configration files
/etc/passwd { .
} 6 { .
} 7 . { man
} 8 { .
15
} 9 , kernel routines {
}. {1,2,5,8
:
) (
kill ). (2) , (1
) (kill
man )
kill . ( 1
:
: clear termenal
:
clear :
16
clear(1)
clear(1)
NAME
DESCRIPTION
SEE ALSO
(tput(1), terminfo(5
.(This describes ncurses version 5.6 (patch 20070128
17
:
-1 ) clear
1 (
)clear(1
)clear(1
2- NAME:
. : emacs
3- SYNOPSIS:
# :
] [
> <
} { .
... .
[option]... [file]...
]> <[
.
18
4- DESCRIPTION:
5- OPTIONS:
6- EXAMPLES:
7- AUTHORS:
.manual
8- BUGS:
.
9- COPYRIGHT:
.mount
19
11- F IL ES:
12- HISTORY:
unix .bsd
# : whatis
. .
:
ahmed@the-game:~> su
Password:
the-game:/home/ahmed # makewhatis
:
ahmed@the-game:~> su
Password:
the-game:/home/ahmed # mandb
makewhatis.
20
whatis
-1 :
ahmed@the-game:~> whatis ls
:
- list directory contents
)ls (1
-2
:
)ls (1
)dir (1
)ifconfig (8
cd .
# : apropos
.
21
.
:
apropos
-1 :
ahmed@the-game:~> apropos fdisk
:
- Curses based disk partition table
)cfdisk (8
)fdisk (8
)sfdisk (8
22
23
:
# : whereis
] [
. manual
:
-1 }
manual { source :
: ls
whereis
ahmed@the-game:~> whereis ls
:
ls: /bin/ls /usr/share/man/man1p/ls.1p.gz
/usr/share/man/man1/ls.1.gz
-2 manual :
whereis -m
24
: manual ls.
ahmed@the-game:~> whereis -m ls
:
ls: /usr/share/man/man1p/ls.1p.gz
/usr/share/man/man1/ls.1.gz
-3 :
whereis -b
: ls.
ahmed@the-game:~> whereis -b ls
:
ls: /bin/ls
-4 } {source :
whereis -s
: } {source ls.
25
ahmed@the-game:~> whereis -s ls
:
ls:
# : locate
.find
: locate
:
ahmed@the-game:~> su
Password:
the-game:/home/ahmed # updatedb
:
locate
-1
:
locate *.
26
: mp4 .
the-game:/home/ahmed # locate *.mp4
} : {
/amr1.mp4/ /mnt/collection1/ar v.clip/2008
-2 mp4 mp2
.mp2/ /mnt/collection1/ogg/ar---ogg/
-3 avi /mnt/collection1
. } note : {/mnt/collection1/*.avi
28
- a :
# : pushd
. :
pushd
pushd
: } { /mnt/games/chm :
ahmed@the-game:~> pushd /mnt/games/chm/
: } { ahmed :
ahmed@the-game:/mnt/games/chm> pushd ahmed
# : popd
.
pushd cd
popd
29
:
ahmed@the-game:/mnt/games/chm/ahmed> popd
:
~ /mnt/games/chm
>ahmed@linux-r58p:/mnt/games/chm
: popd pushd . manual
# : cd
.
-1 :
cd
: ahmed :
ahmed@the-game:~> cd ahmed
:
>ahmed@the-game:~/ahmed
30
-2 :
cd
: ogg /mnt/collection1
:
ahmed@the-game:~> cd /mnt/collection1/ogg
:
>ahmed@the-game:/mnt/collection1/ogg
-3 :
ahmed@the-game:/mnt/collection1/ogg> cd ..
:
>ahmed@the-game:/mnt/collection1
-4 :
~ ahmed@the-game:/mnt/collection1/ogg> cd
ahmed@the-game:/mnt/collection1/ogg> cd
31
ahmed@the-game:~> cd - :
>~ahmed@the-game:
] ~ [ cd ] [ cd ] [ cd -- .
-5 :
ahmed@the-game:/mnt/collection1/ogg> cd ../..
:
>ahmed@the-game:/mnt
# : pwd
.
.
ahmed@the-game:~> pwd
:
32
/home/ahmed
ahmed@the-game:/mnt/collection1/ogg> pwd
:
/mnt/collection1/ogg
# : ls
.
-1 } {
ahmed@the-game:~> ls
:
bin Desktop Documents RealPlayer11GOLD.bin
public_html
.
33
: -2
ahmed@the-game:~> ls /var
:
adm
.
: -3
ahmed@the-game:~> ls -a
:
.
..
.bash_history
.gconf
.gconfd
.gnome2
.qt
.realplayerrc
.recently-used
.bashrc
.gnome2_private .recently-
.beagle
.gnu-emacs
.scim
.ICEauthority
.subversion
used.xbel
bin
.config
.gtk_qt_engine_rc .skel
34
.DCOPserver_the-game__0 .inputrc
.DCOPserver_the-game_:0 .kde
Desktop
.kermrc
.thumbnails
.tvtime
.urlview
.dmrc
.local
.wapi
.dvipsrc
.mcop
.xchat2
Documents
.emacs
.esd_auth
.mailcap
.mozilla
.mplayer
.Xauthority
.xcoralrc
.xemacs
.exrc
.muttrc
.xim.template
.fonts
.opera
.xinitrc.template
.fontconfig
.fonts.conf
RealPlayer11GOLD.bin
.ooo-2.0
.profile
.xine
.xsession-errors
public_html
.xtalkrc
.
U- -4
:
ahmed@the-game:~> ls -U
:
Documents Desktop bin public_html
RealPlayer11GOLD.bin
35
-5 :
ahmed@the-game:~> ls -t
:
Text File Desktop bin Documents public_html
RealPlayer11GOLD.bin
Text File .
-6 } {
:
ahmed@the-game:~> ls -r
:
Text File public_html RealPlayer11GOLD.bin Documents
Desktop bin
-7 )
hard links
( :
ahmed@the-game:~> ls -l
36
:
total 7384
RealPlayer11GOLD.bin
:
bytes
.
: ) . (bin ,Desktop ,........
: ) . ( 15:01
: ) . ( 12-06-2008
: bytes ) . ( 4096
: ) . ( users
: ) . ( ahmed
: :
37
-a
) ( Desktop 10 .
-b hard
links .
: ) ( drwxr-xr-x
.
-8
ahmed@the-game:~> ls -hl
:
total 7.3M
.
38
: -9
ahmed@the-game:~> ls -S
: S l
ahmed@the-game:~> ls -lS
:
total 9760
39
: -10
ahmed@the-game:~> ls -R
:
.:
epiphany.desktop
i386-iso .odt
fstab
ls
openSUSE-10.3-GM-KDE-
MozillaFirefox.desktop opera.desktop
konqbrowser.desktop myComputer.desktop
tvtime.desktop
konquerorsu.desktop Office.desktop
trash.desktop
./Desktop/openSUSE-10.3-GM-KDE-i386-iso:
openSUSE-10.3-GM-KDE-i386.iso
./Documents:
40
rpmforge-net-
./public_html:
-11 :
ahmed@the-game:~> ls -F
:
bin/ Desktop/ Documents/ public_html/
*RealPlayer11GOLD.bin
/ * link
@ socket = .
-12 :
ahmed@the-game:~> ls -m
:
bin, Desktop, Documents, public_html,
RealPlayer11GOLD.bin
-13 } { D :
41
ahmed@the-game:~> ls D*
:
Desktop:
epiphany.desktop
myComputer.desktop
Fedora-9-i386-CDs.torrent Office.desktop
fstab
fstab~
openSUSE-10.3-GM-KDE-i386-iso
opera.desktop
konqbrowser.desktop
konquerorsu.desktop
MozillaFirefox.desktop
mp3
rpmforge-net-tvtime.desktop
Text File
trash.desktop
.odt
Documents:
D
z,R,r -14
: oot
ahmed@the-game:~> ls [Rrz]oot
:
42
root:
Root:
root Root
. zoot
-15 a r llw
:
ahmed@the-game:~> ls [a-r]llw
:
gllw:
kllw:
small a r .
-16 :
ahmed@the-game:~> ls -1 /var
:
43
adm
agentx
cache
games
lib
lock
log
mail
opt
run
spool
tmp
X11R6
yp
: -17
ahmed@the-game:~/Documents> ls -X
:
mido Chikenux.01.7z
opensusestreet.png
hijra-0.1.2.tar.bz2 83425-
44
Text File.txt
) ( .tar.bz2 ) . ( .bz2
# : dir
ls
. ls
- b :
# : touch
. -1 asd
45
{ :
: touch
ahmed@the-game:~> ls -l
:
0 2008-06-14 22:07 ahmed
0 2008-06-14 22:07 hima
: touch
ahmed@the-game:~> ls -l
:
46
-5
:
:
cc yy MM DD hh mm ss
cc
yy
cc : yy
yy ) ( 0 68 ) . ( cc=20
yy ) ( 99 69 ) . ( cc=19
yy .
MM .
DD .
mm .
ss .
: 9
. 09
.
47
: mido
12/9/1981 6:30:24 )
( :
30/7/2022 13:30:50 :
ahmed@the-game:~> touch -t 2207301330.50 mido
48
: 2068
. 1969
# : cat
: cat
-a .
-b
.
-c
.
-d .
-e .
-f .
: cat
:
-1 )
( soca :
.
-2 :
soca ( tman :
soca tman .
50
-6
) ( dido :
-7
:
-8
-9 ) ( bibo
51
# : tac
.
) ( bibo :
ahmed@the-game:~> tac bibo
# : file
-1 ) ( bibo :
ahmed@the-game:~> file bibo
:
bibo: ASCII text
-2 ) bibo
RealPlayer11GOLD.bin ( bin :
:
RealPlayer11GOLD.bin: ELF 32-bit LSB executable, Intel
directory
bibo:
bin:
# : more
.
more )
: ( tman
ahmed@the-game:~> more tman
: more
space
f
Enter
53
# : less
more .
more :
ahmed@the-game:~> less tman
more less
up down .
# : head
.
: 10 tman :
ahmed@the-game:~> head -10 tman
10 .
54
# : tail
.
.
-1 15 :
ahmed@the-game:~> tail -15 tman
15 .
-2 16 :
ahmed@the-game:~> tail +16 tman
16 .
# : wc
.
. soca
-1 :
ahmed@the-game:~> wc -l soca
-2 :
55
ahmed@the-game:~> wc -w soca
-3 bytes :
ahmed@the-game:~> wc -c soca
-4 :
ahmed@the-game:~> wc -m soca
-5 :
ahmed@the-game:~> wc soca
# : grep
)
( .
: capital & small
.
-1 linux soca
:
ahmed@the-game:~> grep linux soca
.
56
soca :
soca :
soca :
57
-6 Linux kernel
soca :
soca :
* /home/ahmed/ :
* /home/ahmed/ :
) ( pattern
: pattern
^
] , [
] small
. small
-a linux :
ahmed@the-game:~> grep ^linux soca
-b linux :
ahmed@the-game:~> grep linux$ soca
: .
linux
59
-c l ) x
linux ( :
# : zgrep
)
( .
zgrep grep grep
zgrep .
:
linux
soca.tar.gz :
ahmed@the-game:~> zgrep Linux soca.tar.gz
60
# : diff
: asd1 :
ahmed elsayed ahmed ali
amr ali
asd2 :
ahmed elsayed ahmed ali
amr ahmed
:
ahmed@the-game:~> diff asd1 asd2
:
2,3c2
<
amr ahmed
amr ali ( .
.
:
-a
-b
-c
- c :
# : mkdir
.
-1 conan :
ahmed@the-game:~> mkdir conan
62
-2 conan /mnt :
the-game:/home/ahmed # mkdir /mnt/conan
. root
-3 ) amr gigi
hani ( dido :
v- :
# : tree
.
-1
:
ahmed@the-game:~> tree
-2 )
( /var :
-3
ahmed@the-game:~> tree -d
-4
) ( /var :
64
- d :
# : rm
.
-1 soca :
ahmed@the-game:~> rm soca
-2 bibo /mnt/collection1 :
ahmed@the-game:~> rm /mnt/collection1/bibo
-3 koki :
ahmed@the-game:~> rm -f koki
-4 yes no
nani :
ahmed@the-game:~> rm -i nani
:
65
rm
ls -l
# : cp
.
66
-1 fofa /mnt/collection1
/home/ahmed/Desktop :
ahmed@the-game:~> cp /mnt/collection1/fofa
/home/ahmed/Desktop
-2 fofa /mnt/collection1
yes no
miro
/mnt/collection1 -i
:
~ ahmed@the-game:~> cp -i /mnt/collection1/miro
:
67
vector /mnt/collection1
/home/ahmed/Desktop :
ahmed@the-game:~> cp -r /mnt/collection1/vector
/home/ahmed/Desktop
ahmed@the-game:~> cp -R /mnt/collection1/vector
/home/ahmed/Desktop
-6 vector /mnt/collection1
/home/ahmed/Desktop
) ( -v :
ahmed/Desktop
:
:
-7 fola soma
/mnt/collection1 soma :
ahmed@the-game:~> cp fola /mnt/collection1/soma
-9
ahmed
/mnt/collection1 /mnt/collection2 :
ahmed@the-game:~> cp /mnt/collection1/ahmed
/mnt/collection2
# : mv
.
mv
69
mv cp
-r . mv
-1 fofa /mnt/collection1
/home/ahmed/Desktop :
ahmed@the-game:~> mv /mnt/collection1/fofa
/home/ahmed/Desktop
-2 fofa /mnt/collection1
yes no
miro
/mnt/collection1 -i
:
~ ahmed@the-game:~> mv -i /mnt/collection1/miro
70
:
?'mv: overwrite `/home/ahmed/miro
no
mv: overwrite `/home/ahmed/miro'? n
: ~ .
-5 zima
/mnt/collection1 :
/home/ahmed/Desktop
) ( -v :
ahmed@the-game:~> mv -v /mnt/collection1/zima
/home/ahmed/Desktop
-7 :
zima /home/ahmed/Desktop
71
mike :
ahmed@the-game:~> mv /home/ahmed/Desktop/zima
/home/ahmed/Desktop/mike
ahmed@the-game:~> cd /home/ahmed/Desktop
ahmed@the-game:~/Desktop> mv zima mike
mv
mv
overwrite
. nona
-8 fola
/mnt/collection1 soma :
ahmed@the-game:~> mv fola /mnt/collection1/soma
-9 -b
wama :
/mnt/collection1 :
ahmed@the-game:~> cp -r * /mnt/collection1
/mnt/collection1 :
ahmed@the-game:~> mv * /mnt/collection1
73
" new folder
. new folder
# : ln
- 1 :
.
.
:
} - { .
ln -s
ahmed@the-game:~> ln -s /mnt/collection1/hima
/home/ahmed/Desktop/zima
- 2 :
} : -
{ partition .
partition .
74
ln
ahmed@the-game:~> ln /mnt/collection1/nova
/mnt/collection1/ogg/koka
75
:
- a :
.
# : tar
.
.tar
-a :
-cvf c creat v
f file
) -cvf .( -fvc
-1 wcw
/mnt/collection1
/home/ahmed/Desktop :
ahmed@the-game:~> cd /mnt/collection1
-2 wcw
76
/mnt/collection1
wcw mtm :
ahmed@the-game:~> cd /mnt/collection1
y n
-cwf
gigi /mnt/collection1
gigi vino :
ahmed@the-game:~> cd /mnt/collection1
n
77
-4 raya gzip
hoda.tgz :
hoda.bz2 :
-b :
-1 vino.tar
/mnt/collection1 :
/mnt/collection1
:
78
-c :
-1 vino.tar
/mnt/collection1
:
ahmed@the-game:~> cd /mnt/collection1
/mnt/collection1
:
/mnt/collection1 :
79
extract `gigi'?y
.
-4 nana.pdf wcw.tar
/mnt/collection1 :
ahmed@the-game:~> cd /mnt/collection1
-d :
-1 mido yara.tar
yara.tar
:
80
# : cpio
.
cpio
-f
ls find
-1 } noga {
/mnt/collection1 noga
tatu :
ahmed@the-game:~> cd /mnt/collection1/noga
-2 } noga {
/mnt/collection1 noga
tatu :
ahmed@the-game:~> cd /mnt/collection1/noga
81
o creates v .
ls find
cpio
. } ls . { find
ls find
ls }
{ ls
find }
{ find
ls .
find .
-2 :
-1 noga
82
- b :
# : gzip
tar
tar.gz tar . gzip
:
-a .
-b .
) ( 9-1
. default
-1 amr-diab.mp3
default :
-2 amr-diab
) ( 9 :
ahmed@the-game:~> gzip -9 amr-diab.tar
-3 -tv
amr-diab.tar.gz
( amr-diab.tar.gz:
( amr-diab.tar.gz: .
-4 amr-diab.tar.gz
:
# : mcedit
85
-1 :
ahmed elsayed ahmed ali
mido :
-a :
ahmed@the-game:~> mcedit
86
save save
ok quit
.
-2 mido :
ahmed@the-game:~> mcedit mido
: tool bar . f9
# vim : gvim
vim vi vi
. vim vim vi
gvim vim .
vim ) ( .
87
-1 :
. Esc
-2 :
i . insert
vim 50
manual
. http://www.vim.org
pdf .
572 .
: vim
:
ahmed@the-game:~> evim
:
-1 file.txt
88
~
file.txt new file
i insert ) INSERT --
-- ( :
Esc )
INSERT -- ( wq:
.
:
-1 .
-2 .
vim :
k up arraw
j down arraw
l right arraw
h left arraw
:help
ctrl + ww
:q
Delete x
dw
w
90
b
dd
End
shift + $
) shift +
( shift +
}shift +
{ shift +
gg
page up
page down
undo
ctrl + r
:e
:split
ctrl + ww
91
:w
:q
!:q
:wq
vim :
-1 ( d + shift +
:
my name is ahmed elsayed ahmed ali . this is my last chance .
this my last escape .
-2 ( c + shift +
-3 ( y + shift +
92
-4
-5
3w
y3w
:
-1 ahmed
a ctrl + x ctrl + p
-2
ctrl + x ctrl + f
ctrl + p ctrl + n
:
ctrl + x ctrl + f
-3
ctrl + x ctrl + k
93
# : pico
. pine
. vim
file.txt :
ahmed@the-game:~> pico file.txt
-m :
ahmed@the-game:~> pico -m file.txt
file.txt
.
-v :
94
save
file.txt file.save
: pico
up arraw
down arraw
right arraw
left arraw
ctrl + g
ctrl + x
ctrl + c
backspace Delete ctrl + d
ctrl + k
ctrl + u
ctrl + e
ctrl + a
ctrl + j
ctrl + v page down
95
ctrl + y page up
ctrl + w
ctrl + t
ctrl + r
ctrl + o
ctrl + x
# : nano
pico
.
http://www.nano-editor.org
2.0.7
pico
. nano
file.txt :
file.txt
.
-x :
ahmed@the-game:~> nano -x file.txt
-v :
# : emacs
:
-a
-b
-c
-d lisp
97
-e
-f
-g use net
-h diray calendar
-i
-j
:
-1 auto save
-2
~
emacs
http://ftp.gnu.org/pub/gnu/emacs
GNU Emacs 22.2.1 Mar-2008-26
-1 file.txt :
ahmed@the-game:~> emacs file.txt
-2 file.txt :
ahmed@the-game:~> emacs -nw file.txt
98
emacs :
emacs ctrl + h t
manual ctrl + h I
ctrl + h f
ctrl + h p
: emacs m meta
alt . Esc c . ctrl
: emacs
up arraw
down arraw
right arraw
left arraw
Delete
Alt + d
Ctrl + e
Ctrl + a
99
Ctrl + k
Page down
Page up
name
ctrl + s Ctrl + x
name
ctrl + c Ctrl + x
emacs
:
. alt +x
emacs
tab calendar
alt + x tab
emacs c cc-mode
java java-mode
alt + x . emacs
100
emacs calendar
} ramadan
{
enter
1 enter
: tool bar .
emacs
alt + x
doctor enter
: emacs
.
# : xemacs
xemacs emacs
xwindows } {
101
xemacs
.
.
# :
> <
| sed
# : sed
.
: sed
-1 .
-2 . script
:
-1
: gamal :
mr. Ahmed mr. Islame mr. Hazem mr. Hassan
mr. mrs.
. lila :
:
.
-2 . script
: mando :
My name is Ahmed Elsayed Ahmed Ali .
My operating system is opensuse 11 .
script soma.sed :
s/Ahmed/hazem/
s/Elsayed/mohammed/
s/Ahmed/abas/
s/Ali/ismail/
: .
:
ahmed@ahmed:~$ sed -f soma.sed <mando> biso
103
# : ispell
ispell
:
ahmed@ahmed:~$ whereis linux.words
.
ispell :
noga
:
.
:
-a .
-b . a
-c r
-d
.I
104
-e *
wildcard L
enter .
-f . up arraw
-i . q
-g ? .
105
:
- a :
# :
/dev
) vga scanner pci
(.
)
. ( physical partition
:
sata sda
sata sdb
sata sdc
cd rom sata :
cd rom scd1
cd rom scd2
cd rom scd3
: 2007
slackware
: . primary
: extended
. logical partition
-1 primary :
sda1 .
sda2 .
sda3 .
sda4 .
-2 primary extended
107
logical :
sda1 .
sda2 .
sda3 .
sda4 . extended
sda5 logical
sda6 logical
sda7 logical .
-3 primary
extended /dev/sda2
. logical
umount .
hda1 /mnt/win-xp
# : fdisk
.
: fdisk
-a :
108
linux-186f:/home/ahmed # fdisk -l
: /dev/sdc -b
linux-186f:/home/ahmed # fdisk /dev/sdc
:
The number of cylinders for this disk is set to 19457.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
109
l .
n .
p .
t .
v .
m .
x ) ( .
w .
q .
110
fdisk
.
4 primary . logical
-1 -l :
linux-186f:/home/ahmed # fdisk -l
-2 fdisk )
( /dev/sdb :
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
)1) software that runs at boot time (e.g., old versions of LILO
2) booting and partitioning software from other OSs
)(e.g., DOS FDISK, OS/2 FDISK
-3 3
primary ) logical
( d :
) primary 1 extended 2
logical 5 6 (
enter .
-5 w .
-6 4 primary
extended 3 . logical
n :
112
Command action
e extended
enter :
) (
10
+10000M
113
http://linuxac.org/
e 2 sda2
enter
:
n l logical
enter :
114
)l logical (5 or over
) (
15
+15000M
. t
l :
115
1 FAT12
24 NEC DOS
Solaris boot
2 XENIX root
39 Plan 9
82 Linux swap / So c1
3c PartitionMagic 83 Linux
42 SFS
data
7 HPFS/NTFS
84 OS/2 hidden C: c6
4d QNX4.x
CP/M / CTOS / .
Utility
40 Venix 80286
c4
Syrinx
8 AIX
be
BootIt
DOS access
b W95 FAT32
e3 DOS R/O
df
93 Amoeba
116
e1
9f BSD/OS
SpeedStor
e4
hi eb BeOS fs
EFI GPT
10 OPUS
(FAT-12/16/
55 EZ-Drive
a5 FreeBSD
a6 OpenBSD
ee
ef EFI
a7 NeXTSTEP
f0
a8 Darwin UFS
a9 NetBSD
f1
f4
fd
fe
117
) (
.
vfat ext3 . swap
vfat :
t enter
1 enter c
extended :
t enter
2 enter f
119
information.
Syncing disks.
.
# : cfdisk
fdisk . fdisk
.
cfdisk
:
conan:/home/ahmed # cfdisk
:
120
) right arraw ( left arraw
- b :
# : mkfs
formatting mkfs :
mkfs.msdos
mkfs.cramfs mkfs.ext3
121
mkfs
mkfs.vfat
mkfs.ntfs
mkfs.minix
mkfs.reiserfs mkfs.xfs
mkfs.ext2
mkfs.bfs
mkfs :
# ext3 . mkfs.ext3
# ext2 . mkfs.ext2
# xfs . mkfs.xfs
# reiserfs . mkfs.reiserfs
# minix . mkfs.minix
# vfat . mkfs.vfat
# ntfs . mkfs.ntfs
: mkfs
umount /dev/sda1 :
122
- c ) (
sda1 . sdc7
-1 : mount
.
-2 : fstab
/mnt . /media
.
. root
123
:
-1 root fdisk -l
:
conan:/home/ahmed # fdisk -l
-2 /mnt
mkdir :
: . extended
logical . primary
-3 mount sda1
fat32 movie :
: sda9 ext3
song :
:
-1 .
-2 .
-3 /etc/fstab mcedit .
: sda1 fat32
win-xp .
: fstab
vfat/
dev/sda1 /mnt/win-xp
user,users,gid=users,umask=0002,utf8=true 0 0
/dev/sda1 /mnt/win-xp
vfat
user,users,gid=users,umask=0002,utf8=true
0 0 .
: sda9 ext3
collection1 .
: fstab
1 2/
user,acl
ext3
dev/sda9 /mnt/collection1
/dev/sda9 /mnt/collection1
ext3 user,acl
125
# : df
.
-1
:
ahmed@linux-186f:~> df
:
Used Available Use% Mounted
1K-blocks
257444
Filesystem
on
/ dev/sda6
udev
dev/sda7
/mnt/linux
dev/sda9
/mnt/collection1
dev/sda10
/mnt/collection2
dev/sda5
dev/sda1
/mnt/games
win-xp
-2 sda9
126
:
ahmed@linux-186f:~> df /dev/sda9
:
45664047 40898551 2445310 95%/
dev/sda9
/mnt/collection1
-3
) (
:
ahmed@linux-186f:~> df -h
:
Size Used Avail Use% Mounted on
16G 7.7G 7.7G 50%/
127
Filesystem
/ dev/sda6
udev
dev/sda7
dev/sda9
dev/sda10
dev/sda5
dev/sda1
-4
) ( 1000
) 1024 = ( 1000
:
ahmed@linux-186f:~> df -H
:
Size Used Avail Use% Mounted on
17G 8.2G 8.3G 50%/
Filesystem
/ dev/sda6
udev
dev/sda7
dev/sda9
dev/sda10
dev/sda5
dev/sda1
-5
ahmed@linux-186f:~> df -T
:
Used Available Use%
128
Mounted on
/ dev/sda6
udev
tmpfs
257444
dev/sda7
dev/sda9
/mnt/linux
/mnt/collection1
dev/sda1
vfat
/mnt/games
/mnt/win-xp
129
:
# :
:
.
:
.
.
:
login
.
Passwd .
GID
. group identification
Comment .
Sell
. /bin/bash
:
130
/etc/passwd .
/etc/shadow .
name
.
Passwd .
passwd .
GID
.
User list .
:
/etc/groub .
/etc/gshadow
. suse
:
UID
# UID
UID
131
#
.
# user adminstration
:
) user adminstration ( :
( .
- a :
. )
( .
132
- 1 : groupadd
-1 friends :
linux-186f:/home/ahmed # groupadd friends
Friends GID .
-2 era GID
560 :
-3 bomba
GID 500 :
hhh hbk
GID 800 :
133
- 2 : groupmod
-1 friends 900
:
linux-186f:/mnt/collection1/funny # groupmod -g 900
friends
-2 :
era 560
friends 900 era 900
.
-3 era tatu :
- 3 : groupdel
tatu :
conan:/home/ahmed # groupdel tatu
134
:
.
- 4 :
: /etc/group
: colon
. root
root : x : 0 :
root x x
.16y/uvLQis/G 0 GID :
.
. video
video:x:33:ahmed,conan,remstereo
video x 33 GID
ahmed,conan,remstereo
. video
- B :
- 1 : useradd
useradd
/home
bash )
135
.
. /etc/default/useradd
useradd
useradd
-1 :
linux-186f:/home/ahmed # useradd -D
-2 hima :
conan:/home/ahmed # useradd hima
hima
.
-3 jake
csh :
ahmed elsayed
8659 :
. finger
-5 asd
friends :
root
:
137
-8 amr
-9 hazem
/var :
138
-12
-o yyyy-
mm-dd dd mm yyyy
.
: dido
2008-10-20 :
-D
: 1 /home
139
/var :
linux-186f:/home/ahmed # useradd -D -b /var
: 2 tch bash
- 2 : usermod
-1 kimo gin :
conan:/home/ahmed # usermod -l gin kimo
-2 jake csh bash :
conan:/home/ahmed # usermod -s /bin/bash jake
-3 rock
foad 5555 :
140
28-8-2008 :
141
: -L !
. shadow
-10 amr
-U U :
- 3 : usermod
-1 amr
:
conan:/home/ahmed # userdel amr
:
no crontab for amr
-2 fofa
:
- 4 :
-1 : /etc/passwd
. .
: colon
remstereo:x:1002:100:remstereo:/home/remstereo:/bin/bas
h
remstereo
x UID 1002 GID 100
remstereo
/home/remstereo
. /bin/bash
ftp server
ftp .
: regular user -3
. root
143
-2 : /etc/shadow
.
: colon
remstereo:2a$05$zn4uZeg:14089:0:99999:7:::
remstereo
2a$05$zn4uZeg
standard 14089 standard
99999 standard
99999
7 99999
7
account expire
special flag
.
144
: :
>!!< .
>*< system
account special user .
2a$05$zn4uZeg .
disable : /etc/shadow
3 8 .
remstereo:2a$05$zn4uZeg:14089:0:99999:7:::
remstereo:2a$05$zn4uZeg:14089:0:99999:7::14088:
: 7
145
/etc/group
/etc/gshadow
. gshadow
/etc/passwd
/etc/shadow
-a group :
-1 gshadow group :
linux-r58p:/home/ahmed # grpunconv
gshadow group
gshadow . group
-2 gshadow
linux-r58p:/home/ahmed # grpconv
146
gshadow .
-b passwd :
-1 shadow passwd :
linux-r58p:/home/ahmed # pwunconv
shadow
passwd shadow . passwd
-2 shadow
linux-r58p:/home/ahmed # pwconv
shadow
passwd . shadow
:
newgrp
-1 amr
147
engineering :
amr@conan:/home/ahmed> exit
amr@conan:/home/ahmed> newgrp
. amr engineering
friends ) (
id . groups
# : id
) UID
( GID
.
-1 id
ahmed :
148
ahmed@conan:~> id
:
)uid=1000(ahmed) gid=100(users
)groups=100(users),16(dialout),33(video
-2 remstereo :
ahmed@conan:~> id remstereo
:
)uid=1002(remstereo) gid=100(users
)groups=100(users),16(dialout),33(video
-3 GID remstereo
ahmed@conan:~> id -g remstereo
:
100
149
-4 GID
remstereo :
ahmed@conan:~> id -G remstereo
:
100 16 33
-5 UID remstereo :
ahmed@conan:~> id -u remstereo
:
1002
# : groups
.
-1 groups
ahmed
:
150
ahmed@linux-r58p:~> groups
:
users dialout video
-2 remstereo
:
# : gpasswd
.
newgrp
.
:
.
151
-1 family :
linux-r58p:/home/ahmed # gpasswd family
:
Changing the password for group family.
New Password:
-2 family :
linux-r58p:/home/ahmed # gpasswd -r family
-3 ) family
(
:
152
# : passwd
-1 remstereo :
linux-r58p:/home/ahmed # passwd remstereo
:
Changing password for remstereo.
New Password:
remstereo
remstereo@linux-r58p:/home/ahmed> passwd
153
:
Changing password for remstereo.
Old Password:
New Password:
remstereo
.
-2 family :
linux-r58p:/home/ahmed # passwd -g family
:
Changing the password for group family.
New Password:
154
colon : /bin/tcsh :
Changing login shell for remstereo.
Shell changed.
/etc/shells
:
remstereo tcsh bash
155
Shell changed.
remstereo
.
-4 remstereo :
linux-r58p:/home/ahmed # passwd -l remstereo
-5 remstereo :
linux-r58p:/home/ahmed # passwd -u remstereo
-6 remstereo :
linux-r58p:/home/ahmed # passwd -d remstereo
-7 remstereo
156
:
linux-r58p:/home/ahmed # passwd -e remstereo
remstereo
ahmed@linux-r58p:~> su remstereo
Password:
New Password:
-8 remstereo
-S :
ahmed@linux-r58p:~> passwd -S
:
ahmed PS 08/04/2008 0 99999 7 -1
login remstereo
) LK NP ( PS :
LK
. passwd -l
NP
. passwd -d
PS
08/04/2008
99999 standard
99999
7 99999
. 1-
-9
158
# : permission
:
3 :
read
write
execute
.
) ( user , group , other :
: user
: group
: other
159
ls -l
:
ahmed@linux-r58p:~> ls -l
:
total 1675076
6 2008-08-08 23:05 aa
antiNetCut-linux.py
. d
:
-a
-b
-a :
:
r read
160
w write
x execute
:
rwxr-x---
r-x------
rwxr--r- .
-b :
:
read 4
write 2
execute 1
:
rw- 6
r-x 5
-wx 3
rwx 7
:
rwx------ = 700
rw------- = 600
-wx------ = 300
161
rw-rw-rw- = 666
rwxrwxrwx = 777
r-xr-xr-x = 555
: 7
. 6
# :
.
:
-1
-2 6 6 .
-3
r w
x r+w
-4
162
: :
r1
w1
x1
0 r+w1
1 w+x1
r+x1
0 ) (
2
1 cd
. ls
:
: r
ls
163
: x
. cd
: r+x
: w
: w+x
: :
r+w
164
r+x
w+x
0 ) (
2
1 :
cat >> filename
:
: r
: w
: r+x
165
# : chmod
-a :
-1 era
dido
.
:
u user
g group
o other
-1 soca
:
-3 soca
167
:
ahmed@linux-r58p:~> chmod o+rx soca
-4 noga
-5 noga
# : chown
.
-1 hima amr
168
family :
-3
dido amr
dido conan
family :
# : chgrp
169
.
-1 bibo
family :
zizo family :
:
adel :
-1 useradd :
conan:/home/ahmed # useradd adel
-2 passwd :
conan:/home/ahmed # passwd adel
:
Changing password for adel.
170
New Password:
-3 adel :
conan:/home/ahmed # mkdir /home/adel
-4 adel
root adel :
-5 /etc/passwd mcedit :
conan:/home/ahmed # mcedit /etc/passwd
-6 :
adel:x:1006:100::/home/adel:/bin/bash
171
/bin/bash
/bin/bash
172
:
.
12 1429 13 2008
02:20 .
.
: /
:
:
:
:
remstereo555@yahoo.com
remstereo@gmail.com
remstereo
173