Tips ‘n’ Tricks for Linux

Change Directory

Keyword: cd

Usage: Takes your terminal to the directory you choose.

Example: cd Desktop

Types:

A. cd..

Usage: Takes you to the Main folder from a Sub-folder

Clear Screen

Keyword: clear

Usage: Clears the Terminal Screen

Example: clear

Make A Folder using Terminal

Keyword: mkdir

Usage: Used to make a folder from the terminal

Example: mkdir example_folder

List of files and sub-folders

Keyword: ls

Usage: Displays the files and subfolders in a directory

Example: ls

Output from folder “example_folder” with new folder named “folder_1”

version of python

Note: If you are not familiar with python be free to read the article about python

Keyword: python –version

Usage: Gives the version of python you are using

Example: python --version

Output:

Visual editor in terminal

Keyword: vi

Usage:Will open a editor in Terminal. It requires special Keywords to type,save,exit

Example:vi example.txt

Output:

Now to type Enter:i

You will see a --INSERT--in the bottom

Now, Start type your code

To exit the vi at any time just press: Esc + :q!

Then, It will return to the place you started

Date and time

Keyword: date

Usage: displays current date and time

Calendar

Keyword: cal

Usage: Shows the month’s calendar

User and more

Keyword: finger user

Usage: Displays information about the user

dISK USAGE

Keyword: df

Usage: Shows the Disk usage

Who am i?

Keyword: whoami

STAY TUNED FOR MORE!!!!!!