Monday, January 25, 2010

network

25/JAN/MON

abaout information network
$ sudo ethtool (eth0)

search network active
$ sudo ifconfig

nk tgk eth0
$ sudo ifconfig eth0

cara nk menyambung dan memutuskan talian
memutuskan : $ sudo ifdown eth0
menyambungkan : $ sudo ifup eth0

kaeadah wireless
$sudo iwlist scan

Sunday, January 24, 2010

melihat user dalam account

25/JAN/MON

$ls /home
/student

$ls
log -term.log

$ ls -a pythonlist.txt

-rwx r- xr-x

- : - (permission)


-rwx r- xr-x

w (write)
r (read)

$nano pythonlist.txt : click file (for edit file)
: CTRL -O ( for save)
: CTRL – x (for exit)


kaedah untuk sembunyikan file dan kembali kepada keadaan biasa.

$ chmod u-r pythonlist.txt (sembunyikan file)
$ chmod u+rw pythonlist.txt (kembali keadaan biasa)


$ chmod u-r pythonlist.txt

u (user)
g (group)
o (other)

$ chmod uxrw pythonlist

Cara untuk menambah group user

22/JAN/FRI

$sudo group class
$sudo useradd -c “student 1” -g class
$sudo useradd student student2

set password student 1.

$sudo password student 1
passwd student1

CTRL-ALT- F3 (login student 1)
$pwd

CTRL-ALT-F4 (login student 2)
$pwd

CTRL-ALT-F5 (login student 3)
$pwd

$sudo useradd student -d /home/student3
$sudo passwd student

untuk delete : $sudo user student3
$who
$finger

Mengesan floppy

21/JAN/THUR/11.15AM.

kaedah mengesan floppy

$ mount /dev /fd
$ ls /media

$ mount /dev/cdrom /mnt/cdrom

$ ls /mnt
$ sudo mkdir /mnt/cdrom
(mount commad)

dah download filekan dengan nama.
dsd.iso
mount - o loop nama cerita.iso /mnt/cdrom



user kepad system

cara untuk create group : $ group add sales (name group)
untuk deleted : $groupdel (name group)


melihat senarai dalam etc
$cat /etc/group.

kaedah menukar akaun kepada marketing
$group mod -n account marketing

Wednesday, January 20, 2010

kaedeah mencari files (ubuntu)

20/JAN/2010/ WES/ 11.50AM


contoh 1:

$locate file massages


taipkan :
hidhir@hidhir-laptop:~$ find / -name massages

result:







tugasan 1 :
find files with 'mozilla'



jawapan :
taipkan :$find/ -name mozilla

result :







tugasan 2 :
find 'network' files in '/etc' directory


jawapan :
taipkan : $find /etc -name network

result :









tugasan 3 :
find file belogging to user root in /var directory


jawapan :
taipkan : $find /var -user root

result :

Monday, January 18, 2010

KAEDAH MELIHAT FILE (UBUNTU)

19/JAN/2010/1.05PM

Untuk melihat file yang terdapat pada sistem ini, boleh menggunakan pelbagai kaeadah... bergantung pada kehendak kita. Antaranya ialah:

tekan > application > accessories > terminal

cth :









- melihat file yang terawal
-taipkan : $ head pythonlist.txt (menunjukkan line paling awal)

- melihat file yang terakhir
- taipkan :$tail python.txt (menunjukkan line paling akhir)

- melihat file dengan menekan ENTER pada keyboard untuk melihat file berikutnya
- taipkan : $ more pythonlist.txt

- melihat file dengan menolak / menarik scrool pada mouse untuk melihat file berikutnya
- taipkan : $ less pythonlist.txt

- melihat file megikut turutan (dari file awal ke file akhir)
- taipkan : $ cat pythonlist.txt

- melihat file melawan turutan (dati file akhir ke file awal)
- taipkan : $ tac pythonlist.txt

- melihat file berkendali secara lansung.

- taipkan : $ tail -f /var/log/massages

Mandrake or Mandriva

19/JAN/2010




Feature of mandrake :

Mandriva Linux 2010 is one of the most innovative and one step beyond releases ever of Mandriva Linux, the leader in innovative and easy-to-use desktop Linux.

It brings you KDE 4.3 as the default KDE desktop. This major new release of KDE further enhances the KDE desktop experience. Other major new software versions include GNOME 2.28, OpenOffice.org 3.1.1 and Mozilla Firefox 3.5. Mandriva 2010 is using the 2.6.31 Linux Kernel, with the usual assortment of patches by the excellent Mandriva Kernel Team to make sure it's tailored to the distro.

As always, Mandriva Linux 2010's hardware compatibility is second to none. As well as conventional systems, it boasts excellent support for a wide range of netbooks, including all currently available Asus Eee PC models, the Acer Aspire One, the MSI Wind, and others.



How to download :

You can download the Mandriva Linux 2010 One Live CD or the Free DVD from here . You can also buy the boxed PowerPack edition or purchase the PowerPack subscription from the Mandriva Store.