Sunday, January 31, 2010

27-01-10

Directory buat resume

$sudo mkdir /var/www/resume

$cd /var/www/resume

$ var/www/resume $ sudo touch index.html
" " gambar.html
" " biodata.html
" " education.html
" " work.html

dlm index html

nama:link utk gambar
biodata:link utk biodata
education:link utk education
work:link utk work

buka localhost/resume



resume saya



nama:saidatul klik disini


biodata:klik disini


education:klik disini


work:klik disini


save CTRL O enter

utk lihat
$cd /var/www/resume
$ sudo nano biodata.html


26-01-10

Utk letak gambar.

$ sudo nano /var/www/gambar.html

masukan dalam file

$ sudo cp/home/saidatul/desktop/intro.jpg/var/www

masukkan password
$ ls /var/www

keluar index.html intro.jpg

utk masuk ke terminal gambar
$ suda nano /var/www/gambar.html


Setelah berada di terminal:




save CTRL O enter

utk lihat samada ganbar atau x.cari di

http://localhost/gambar.html

utk copy banyak gambar

$sudo cp -r desktop/var/www

$sudo cp/home/saidatul/picture/cat.jpg/var/www

utk besarkan gambar



centerkan gambar


Tukarkan font


test



nak linkkan index kpd gambar





26-01-2010

Apache-web server

$ sudo apt-get install apache

$ sudo apt-get update

$ sudo apt-get install apache 2.
window -IIS

web server
->web pages

$ ls /var/www
akan kuar index.html

untuk lihat file:

$sudo nano /var/www/index,html

tukarkan file kpd "ini web server saidatul"

WEBSITE

$ sudo nano /var/www/index.html
page 2 tukar

ini web server saidatul



tekan CTRL O enter

Taip

taip apa2 maklumat




Jika ingin masukkan maklumat lain

student

utk jarakan i perkataan

Monday, January 25, 2010

22-01-2010

Tambah user dalam user class

-$ sudo groupadd class

$ sudo useradd "student 1" -g class

$ sudo useradd student 2 (user ni x blh guna)

set password

$ sudo password student1

masukan password student 1

-open terminal tty3

CTRL+ALT 3
.Login as a student 1

-Open terminal tty4

CTRL +ALT4
.login as astudent 2

lepas masukan dua2,masukan
-$ pwd=show where we are

$ sudo useradd student3 -d/home/student3

$ sudo password student3

open terminal
CTRL +ALT +F5
-masukan password student3
taipkan pwd.

untuk delete

-$ sudo useradd student3
@
-$ sudo useradd student3 -m

-$sudo usrerdel student3
-pwd

utk lihat sape yg login kita
-$ who
@
-$ finger

Wednesday, January 20, 2010

21-01-10

mount disket

-$ mount/dev/fdo mnt/floppy

-$ ls /mnt -utk version lama

-utk connect cd rom

-$ ls /media

-kita blh mount dlm mnt director.

$ mount /dev/cdrom/mnt/cdrom

-$ sudo mkdir /mnt/cdrom

=download satu imej file

-dsf.iso

$mount -o loop files .iso/mnt/cdrom

berapa byk space yg blh digunakan;
$ du -sh /var

sudo du-sh/var

-detail space yg byk digunakan

$du -sk *|sort -rn

then
-$ du -sk *|sort -n

utk lihat file lain

$ ls -lSr |more.

*common user group.
-terdpt beberapa file dlm user group;
=sales
=admin
=technical
=account

$ groupadd sales
$ sudo grounpadd sales

-utk delete
$ groupdel technical

utk tgk semua group dlm system;

$ cat /etc/groups

change group account name to marketing

-$groupmod -n marketing account

utk check
-$ cat /etc /group

21.01.2010

membuat hard disk-ide
-ide /dev/hda
-sata /dev/sda

*kalau ada 2 hard disk
-ide/dev/hdb
-ide/dev/sdb

-dalam 1 hard disk blh bt bnyk pation.
cth:window,linux,swap
-dlm linux pation ada no.

1./deb/hda 1
2./deb/hda 2

-$ sudo parted

-then tekan enter akan terpapar satu item spt:

number start end size type file system flagl
1 8258kb 89.1gb 81.1gb primary nlfs boot

window-install system

*vfat
*fat
*fat32
*ntfs(window xp)

jika ingin keluar;
parted-quit

-bila boot pd linux akan boot printing linux:

mounted system recognise.
-$ df -h =akan jumpe skrin imformation

-mount satu pation spt cd rom
kene bt satu directory

$ mkdir windows

$ sudo mount /dev/sda 1

$ ls windows
*hijau merupakan window file

$ ls windows /'program files'

$ sudo mount windows

$ amount/dev/sda 1 on /home/user/windows

jika ingin buang

$ umount /dev/sda....................../windows

Tuesday, January 19, 2010

20-01-2010

=Mencari file yg specific dlm directory

$ find / -name messages

=Mencari file yg terakhir dlm conf.

$ find / -name \*conf

=mencari file dlm satu user

$ find / -user user account(saidatul)

=modify file dlm masa 10 hari

$ find /var -mtime -10
*modified @ created

=utk modify lebih

$ find /var -mtime +20

blh jgk gune

$ find /home -mtime +20@-20

=utk cari file yg dah access

$ find /home +atime +20

=utk list file yg dah diguna dlm masa 10 hari

$find /bin -atime 10 hari

=utk cari location tempat simpan file

$ whereis mozilla

mozilla
firefox
empathy