Kali Linux Terminal Tutorial for Beginners

November 14th, 2017 by thelinuxevangelist

Kali Linux Terminal Tutorial for Beginners




Welcome Kali User! The Tutorial Presents You a Step-by-Step Kali Linux Terminal Tutorial for Beginners.

And with this Kali Linux Command Line Tutorial for Beginners You Can Just Getting-Started Making the First Steps on Linux Shell :)

Furthermore this is Just a ‘Quick and Dirty’ Introduction to the Command Line Basic Instructions for the Bash Shell.

Because after only ‘Practice Makes the Master‘; so Do Not try to Getting-Started too Hard but Just ‘Take it Easy!‘ ;)

Finally the Commands are Intended for Execution the Default Bash Linux Shell but Most should Works also for the Bourne, C, TC and Korn Shells…

Kali Linux Terminal Tutorial for Beginners Quick Start - Featured
  1. Open a Terminal Shell emulator window
    (Press “Enter” to Execute Commands)

    Kali Linux Terminal Tutorial for Beginners Quick Start - Kali Open Terminal



  2. Most noteworthy: the main Linux Shell Commands are simply Abbreviations of the Corresponding World.

  3. Then List some Directory’s Contents
    (Both Files and Directories contained)
    So now try to List the Directory you are in:

    ls .

    The ‘.’ is meaning This location.
    * Futhermore see ‘ls’ as an Abbreviation of ‘list’ *
    And if you are in a New Terminal window the Output could be something like:

    Desktop/    Downloads/  Pictures/   tmp/
    Documents/  Music/      Templates/  Videos/
    

    Here the Entities with a Trailing Slash are Directories.
    Again execute to List the Downloads folder:

    ls ./Downloads

    Or smoothly:

    ls Downloads

    Next to List the Main System’s Root Directory:

    ls /

    Furthermore to List the usr Dir:

    ls /usr

    And to List the bin Directory into the usr one:

    ls /usr/bin



  4. Next practice the Change Directory directive
    Change to the root:

    cd /

    * Again find out how ‘cd’ is an Abridgement of ‘change directory’ *
    Then Go to the /usr/bin:

    cd /usr/bin

    Now to Navigate to the Parent use the ‘..’
    So Back to the root with:

    cd ../..

    (It’s like to say: ‘One Step Back and then One Step Back’ again)
    Finally to Return Home simply use:

    cd  

    Heil you achieved the First Walk into the Linux Directory Tree :)

  5. Again experiment yours Creative powers
    Making a test Directory like:

    mkdir $HOME/test

    * Recognize ‘mkdir’ as a ‘make directory’ Abridgment *
    ($HOME and ‘~’ are both meaning your’s Home Folder)
    Furthermore touch a New File with:

    touch $HOME/test/test



  6. To Copy Directories and Files
    Especially relevant: See below How to Use ‘sudo‘ to Put Stuff into Destinations you are Not Allowed!

    To Copy a Single File:

    cp /[path1]/myFile1 /[path2]/

    Or also Setting a New File’s Name at the same time:

    cp /[path1]/myFile1 /[path2]/myFile2

    And to Copy Multiple Files at once:

    cp /[path]/myFile1 ... /[pathN]/myFileN \
    /[pathX]/

    (After a ‘\’ Backslash the Command is Not Executed but follows in the Next Line)

    For Instance to Copy a Single File:

    cp $HOME/test/test $HOME/test/hello 

    Then to Copy a Single Directory with all its Contents:

    cp -r /[path1]/myDir1 /[path2]/

    Or Setting a New Name:

    cp -r /[path1]/myDir1 /[path2]/myDir2

    Again to Copy Multiple Directories:

    cp -r /[path1]/myDir1 ... /[path]/myDirN \
    /[path2]/

    Now for Instance to Copy a Single Directory do:

    cp -r $HOME/test $HOME/hello
  7. Next to Move Files and Directories

    Moving a Single File:

    mv /[path1]/myFile1 /[path2]/

    Or into a New one:

    mv /[path1]/myFile1 /[path2]/myFile2

    So to Move Multiple Files:

    mv /[path1]/myFile1 ... /[pathN]/myFileN \
    /[pathX]/

    And the Same Command is Valid Also for Directories!

    Now for Instance to Move a Single File do:

    mv $HOME/test/test $HOME/hello/hello
  8. To Delete Directories and Files

    To Delete a File do:

    rm /[path]/myFile

    For Instance:

    rm $HOME/test/test

    And to Remove a Directory do:

    rm -rf /[path]/myDirectory

    So for Example:

    rm -rf $HOME/test
  9. Last How-to Get the Admin Super-Powers
    (First of all the root User is the Default one in Kali, so the following instructions are intended for a Normal User)
    So to Check What User you are on:

    whoami

    Then to Login as SuperUser:

    su -

    If Got “User is Not in Sudoers file” then Look: Solution

    Then to Logout:

    exit

    (To Protect Your System from the possible Damages of an Hazardous ‘Crazy’ Command Execution the Logout ‘Should’ be Executed Every Time a Conscious and Meaningful Series of Commands has been Achieved… )
    Finally to Execute a Single Command as SuperUser:

    su -c 'myCommand'

    Or:

    sudo myCommand
  10. How to Change Permissions on Kali Linux File System:

    Kali Linux Change File Permissions
  11. Congratulations You are now fully Initiated to the awesome Linux Kali Linux Command Line Shell. ;)

Tags: , , , ,