Home    Training    Downloads    Tutorials    Arbitary    Get Fate    Proxy Info
 
Training session 4: Basic Linux Commands
Difficulty: Easy
Learn the commands that can be used in Linux and their MSDOS equivelant
Creator: m101


If you have used MSDOS before linux commands are rather simple to pickup, here are a few simple commands and their explanation:


-------------------------------------------------------------------
Command: ls
Use: Displays the contents of the current directory
DOS Equivelant: dir
Example:

$ ls
Muttrc group moduli postinstall setup termcap
cron.d mime.types passwd profile ssmtp wgetrc

-------------------------------------------------------------------

-------------------------------------------------------------------
Command: cd <directory>
Use: Allows changing of the current directory
DOS Equivelant: cd <directory>
Example:

$ cd etc

-------------------------------------------------------------------

-------------------------------------------------------------------
Command: cat <file>
Use: Displays the contents of the specified file
DOS Equivelant: type <file>
Example:

$ cat e.c
unsigned long get_sp(void) {
__asm__("movl %esp,%eax");
}
void main() {
printf("0x%x\n", get_sp());
}

-------------------------------------------------------------------

-------------------------------------------------------------------
Command: su
Use: Changes the current user to root if the correct
password is given
DOS Equivelant: none
Example:

$su
Password:

-------------------------------------------------------------------

-------------------------------------------------------------------
Command: mkdir <directory>
Use: Creates a directory
DOS Equivelant: md <directory>
Example:

$ mkdir tem

-------------------------------------------------------------------

-------------------------------------------------------------------
Command: cp <file> <destination>
Use: Copies the specified file to the destination
DOS Equivelant: copy <file>
Example:

$ cp e.c e1.c

-------------------------------------------------------------------

-------------------------------------------------------------------
Command: rm <file>
Use: Deletes the specified file
DOS Equivelant: del <file>
Example:

$ rm e1.c

-------------------------------------------------------------------


All of these commands are useable in the Fate Challenge, so experiment with them and learn how to use linux.
Name

URL or Email

Message