BASIC COMMAND FOR LINUX


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 syahidahkusnon

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

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

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

Create new directory and rename as “pelatih”.
[netsec@localhost syahidahkusnon]$  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/syahidahkusnon/pelajar
[netsec@localhost pelajar]$  cat nama

Copy “kursus” file into “pelatih” directory.
[netsec@localhost student]$  cp kursus /home/netsec/syahidahkusnon/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/syahidahkusnon/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: