Thursday, January 26, 2012

AMALI : BASIC COMMAND FOR LINUX

3 directory in directory "eika"


Login user “netsec”.
Password user “netsec”.
Login as:  netsec
netsec @10.1.0.35’s password:  netsec

Check current user.
[netsec@localhost ~]$  whoami

Check current location.
[netsec@localhost ~]$  pwd

Create new directory and rename as “your name”.
[netsec@localhost ~]$  mkdir eika


Enter into “your name” directory.
[netsec@localhost ~]$  cd eika

Create new directory and rename as “student”.
[netsec@localhost eika]$  mkdir student

Create new directory and rename as “pelajar”.
[netsec@localhost eika]$  mkdir pelajar

Create new directory and rename as “pelatih”.
[netsec@localhost eika]$  mkdir pelatih

Create new file in “student” directory and rename as “nama”.
Fill this file with: and Save this file.
  • Julia
  • Suraya
  • Hapipah
  • Umairah
[netsec@localhost student]$  nano
Julia
Suraya
Hapipah
Umairah
< control + O> - WriteOut
File Name To Write: nama

Create new file in “student” directory and rename as “kursus”.
Fill this file with : And save this file.
  • Netsec
  • Wifi
  • RFID
[netsec@localhost student]$  nano
Netsec
Wifi
RFID
< control + O> - WriteOut
File Name To Write: kursus

List all file in “student” directory.
[netsec@localhost student]$  ls

Copy “nama” file into “pelajar” directory.
[netsec@localhost student]$  cp nama /home/netsec/eika/pelajar
[netsec@localhost pelajar]$  cat nama

Copy “kursus” file into “pelatih” directory.
[netsec@localhost student]$  cp kursus /home/netsec/eika/pelajar
[netsec@localhost pelatih]$  cat kursus

Rename “kursus” file in pelatih directory to “course”.
[netsec@localhost pelatih]$  mv kursus course

Move “nama” file from pelajar directory into pelatih directory.
[netsec@localhost pelajar]$  mv nama /home/netsec/eika/pelatih

Remove “nama” file from pelatih directory.
[netsec@localhost pelatih]$  rm nama

Remove “course” file from pelatih directory.
[netsec@localhost pelatih]$  rm course

Go back to home directory.
[netsec@localhost pelatih]$  cd ~

Clear command prompt.
[netsec@localhost pelatih]$  clear

Logout user.
[netsec@localhost ~]$  logout


0 comments:

Post a Comment

 
 

Designed By Blogs Gone Wild!