UnixDroid

Beginner · 8 missions

Terminal first steps — Linux terminal practice

Your very first Linux commands: print text, see who and where you are, list and read files, and get help.

student@unixdroid: ~

Missions in this track

Bilkul zero se shuru karo — pehli command se lekar help padhne tak.

  1. 1

    Say hello

    Print the text Hello UnixDroid with echo.

    Show the command
    echo Hello UnixDroid

    echo prints its arguments. Scripts use it to show messages.

  2. 2

    Who am I?

    Find out which user you are logged in as.

    Show the command
    whoami

    Knowing your user is the first thing to check on any machine — in a pentest too.

  3. 3

    Where am I?

    Print your current directory (folder).

    Show the command
    pwd

    pwd is the "you are here" sign. Your home folder is /home/student, also written ~.

  4. 4

    Look around

    List the files and folders in your home directory.

    Show the command
    ls

    Blue names are folders, green names are programs you can run.

  5. 5

    Read a file

    Show the contents of welcome.txt.

    Show the command
    cat welcome.txt

    cat prints a whole file. For long files use less or head.

  6. 6

    Get help

    Open the manual page of the ls command.

    Show the command
    man ls

    man is the built-in manual. Also try explain ls -la here — it breaks a command into parts.

  7. 7

    Your history

    Show the commands you have typed so far.

    Show the command
    history

    Press ↑ to bring back the last command and Tab to auto-complete names — the two biggest time savers.

  8. 8

    Clean screen

    Clear the terminal screen.

    Show the command
    clear

    Ctrl+L does the same. Done — you know the basics!