���ɾ� ����ڷ�...


adduser �Ǵ� useradd---����� �߰�

# adduser thkim
thkim�� ���̵� �����. 

# adduser -p world -g class -s '/bin/bash' -d '/home/thkim' thkim
��й�ȣ�� world�̰� �׷��� class ���� bash Ȩ���丮�� /home/thkim �� thkim�� ���̵� �����.

userdel ---����� ���� 

# userdel thkim
thkim�� ���̵� �����Ѵ�.

# userdel -r thkim
thkim�� ������� Ȩ ���丮���� �����Ѵ�.

passwd ---��й�ȣ ���� 

# passwd thkim
thkim�� ���̵� �н����带 �ο��Ѵ�.

ls ---���ϰ� ���丮�� ���� ������ ����Ѵ�.

# ls -al
-l: ������ ��� ���� ���
-c: �ֱ� ������ �ð� �������� ���
-d: ���丮 ���� ���
-F: ������ Ư���� ���( /���丮 *����ȭ��)
-a: dot(.)���� �����ϴ� ������ �̸��� ������ ��� ������ ���
���� ���丮�� ��� ������ ���� ����. 

cd ---���丮 ���̸� �̵��Ѵ�.[���� ���丮 ����]

# cd -
��� ���� ���丮�� �̵��Ѵ�

# cd ~
Ȩ ���丮�� �̵��Ѵ�

# cd ..
�� �ܰ� ���� ���丮�� �̵��Ѵ�

# cd /
�ֻ��� ���丮�� �̵��Ѵ�

# pushd .
���� ���丮�� ����Ѵ�

# popd
���� ���丮�� �̵��Ѵ�[�� ���� ����] 

cp ---������ �ٸ� ���丮�� �����ϰų� �ٸ� �̸����� �����Ѵ�.

# cp thkim /root
thkim�� ������ /root �� �����Ѵ�. 

mv ---������ �ٸ� ���丮�� �̵��ϰų� ���ϸ��� �����Ѵ�.

# mv thkim hoho
thkim�� ������ hoho�� �ٲ۴�. 

# mv thkim /work
thkim�� ������ /work/�� �̵� ��Ų��. 

rm ---������ �����Ѵ�.

# rm /root
/root ���丮�� ����� :) 

mkdir ---���丮�� �����Ѵ�.

# mkdir thkim
thkim�� ���丮�� �����. 

rmdir ---���丮�� �����Ѵ�.

# rmdir thkim
thkim�� ���丮�� �����

# rm -r tmp
tmp ���丮�� ��� ������ �����. 

man ---������ ���ɾ ���� ���� �Ǵ� ������ ����Ѵ�.

# man ls
ls�� ���� ������ ����. 

info ---man���ɾ� ���� �ڼ��� ���� ����

# info ls
ls�� ���� ������ ����. 

more ---������ ������ ������ �� ȭ�鿡 ����ϸ鼭 ��� �����.

# more thkim
thkim ������ ����
����� q 

cat ---������ ������ ������ ����Ѵ�.

# cat thkim|more
thkim ������ �� ȭ�龿 ����. 

grep ---Ư�� ���ϳ��� ������ ����[���ڿ�]�� ��ġ�ϴ� ���� ����Ѵ�.

# cat thkim|grep thkim
thkim�� ���Ͽ� thkim��� ���ڿ��� ã�´�. 

chmod ---������ ���ٱ���[���������� �Ӽ�]�� �����Ѵ�.

# chmod go-rwx /root or chmod 700 /root
/root ���丮�� �׷�� ��Ÿ ������� �б� ���� ���� ������ ���ش�.
u: ���� ������, g: �׷�, o: ��Ÿ �����, a: ��� �����
+: ����㰡�ο�, -: ����㰡��Ż, =: �㰡 ���
r: �б� �㰡, w:���� �㰡, x: ���� �㰡
r = 4, w = 2, x = 1 

chown ---������ �����ڸ� �����Ѵ�.

# chown thkim file
file�� �������� thkim�� �ٲ۴�. 

df ---��밡���� ��ũ�� �뷮�� ����Ѵ�.

# df
��� ������ ��ũ �뷮�� ����Ѵ�. 

du ---�������� ���丮���� ������ �����ϴ� �뷮�� �˾Ƴ��� ���ɾ�

# du -b /home
/home ���丮 ���� �뷮�� ����Ʈ�� ǥ���Ѵ�.

# du -sh /usr
/usr ���丮 ���� �뷮�� �ް�����Ʈ ������ �����ش�. 

cfdisk --- ��ũ ������ ����Ѵ�.

# cfdisk 

hdparm ---�ϵ� ��ũ �������̽�

# hdparm -c3 -d1 /dev/hda
hda����̺� 32bit���� dma��带 On ��Ų��. 

find ---�־��� ���ϸ��� ������ ������ ã��, �� ��θ� ����Ѵ�.

# find / -name thkim -print
�ֻ��� ��Ʈ ���丮���� �˻��Ͽ� �˻��� ������ �� �࿡ �ϳ��� ǥ�� ���

# find . -name thkim -print
������ �۾� ���丮���� �˻�

# find / -size +1000 -print
�ֻ��� ��Ʈ���� ũ�Ⱑ 1000���� �̻��� ���� �˻�

# find . -size -1000 -print
�� ���丮���� ũ�Ⱑ 1000���� ������ ���� �˻�

# find . -mtime +10 -print
10�� ������ ������ ���� �˻�

# find . -mtime -10 exec rm {} \:
10�� �̳��� ������ ������ �˻��Ͽ� ��� �����

# find / -cmin 5 -print
5������ ���������� ������ ������ ã�� �� �ִ�.

# find /home -empty -print
/home ���丮�� �뷮�� 0�� ���ϰ� ���丮�� ã�´�.

# find / -perm -4000 -print
�۹̼��� 4000 �̻��� ������ ��� ����Ѵ�.

finger ---ȣ��Ʈ�� ����ڰ� �α��ߴ��� �˻�

# finger thkim@thkim.com
thkim.com�̶� ȣ��Ʈ�� thkim�� ����ڰ� ���� �ߴ��� �˻��ϱ� �ִ�. 

chfn --- finger ������ �����Ѵ�.

# chfn thkim
thkim�� finger������ �����Ѵ�. 

file --- ���Ͽ� ���� ������ ������ ����.

# file ls
ls���Ͽ� ���� ������ ����Ѵ�. 

jops ---�������� ���α׷��� Ȯ���Ѵ�.

# jops
�������� ���α׷��� Ȯ���Ѵ�. 

env ---���� ����ϰ� �ִ� terminal ������ �� �� �ִ� �����̴�.

# env
���� ����ϰ� �ִ� terminal ������ �� �� �ִ� �����̴�. 

history ---�ֱٿ� ����ߴ� ���ɾ ����ϴ� ����

# set history=100 set savehist=100
�ֱٿ� ����ߴ� 100���� ���ɾ ����ϱ� 

whereis ---binary, source, manual page files�� ��ġ�� ã�� �� �ִ� ����

# whereis ls
ls ������ ��ġ�� ã�� �� ��θ� ǥ���Ѵ�. 

which ---�� ����ڰ� ������ ~/.cshrc ȭ�Ͽ��� ���� �� ������ �̿��Ͽ� ����ڿ��� ������ ��ġ�� �˷���

# which mail
which ������ Ȱ���ϴ� ������ ������ ����.
1 ~/.cshrc ȭ���� ��θ� ���� ������ �ִ°��� �˻�
2 ~/.cshrc ȭ�Ͽ��� ������ alias�� �˻� 

kill --- �������� ���α׷��� �����Ų��.

# kill -9 555
pid�� 555�� ���μ����� ���� ��Ų�� 

mount ---�����ġ ���丮�� �ٿ�����

# mount -t iso9660 /dev/cdrom/ /mnt/cdrom
�õ���� /mnt/cdrom�̶� ���丮�� ����Ʈ ��Ų�� 

tar ---���ϵ� ����/Ǯ��

# tar -zcvf thkim /etc
/etc ���丮�� thkim�� ���Ϸ� �����Ų��. 

# tar -zxvf thkim /etc
����� thkim�� ������ /etc���丮�� ������ Ǭ��. 

# tar -zcvf thkimall thkim thkim2 thkim3
thkim thkim2 thkim3 ������ thkimall ���Ϸ� �����Ѵ�. 

clear ---ȭ�������

# clear
���� ȭ���� ������ �Ѵ� 

touch ---������ ���� �� ������ ����, �̹� ������ ������ ���� �ð� ����

# touch [option] [�ð�] [���ϸ�]

who or w---���� ����� Ȯ��

# who
���� �������� �̿��ϴ� ����ڸ� Ȯ���Ѵ�. 

ps ---���μ��� ���� �����ֱ�

# ps ax|grep netscape
���� netscape�� ���� �Ǿ����� Ȯ���Ѵ�. 

pwd ---���� ���丮 ǥ��

# pwd
���� ���丮�� ��µȴ�. 

cal ---�޷��� ǥ���Ѵ�

# cal 9 1999
1999�� 9�� �޷��� ����Ѵ�. 

date ---���� �ð��� ��¥�� ȭ�鿡 ǥ���Ѵ�.

# date
���� �ð��� ��¥�� ȭ�鿡 ǥ���Ѵ�. 

alias ---���� ���̴� ���ɾ ���� ���ϰ� �ٲٴ� ����

# alias dir='ls -al'
ls -al���ɾ dir�� ���� �����ϰ� �����.

# alias ����=cp
�� ���� cp���� ��� '����'��� ������ ������ �ȴ�.

whoami ---���� ����ڸ� ǥ���Ѵ�.

# whoami
���� ���ɾ� who am i

shutdown ---������ �ý����� ����� ���� ���ɾ�

# shutdown -h now
�ý����� ���� ��Ų��.

# shutdown -r now
�ý����� ������ ��Ų��.

# shutdown -r -t 12:00
�ý����� ���� 12�ÿ� ������ ��Ų��. 

halt ---������ �ý����� ����� ���� ���ɾ�

# halt
�ý����� ���� ��Ų��. 

reboot ---������ �ý����� �����ý� ���� ���ɾ�

# reboot or [ Ctrl + Alt + Del ]
�ý����� ������ ��Ų��.