- Back to Home »
- linux »
- Basic Terminal Commands For Linux
Posted by : Unknown
In this tutorial you will learn to use linux terminal. You will learn to navigate on theterminal, learn to create and remove file and much more. Most of this commands also works on Mac Os X and powershell on windows.
What Is Terminal ?
Basically you are reading this tutorial because you are new to linux or want to learn using terminal to navigate. Before you get started you must have linux installed or running virtually on your computer. I would recommend downloading fedora or ubuntu (If you have trouble installing ubuntu leave a comment below and i will post a tutorial).Commands To Remember
This are some of commands you must remember which will help you to use terminal more easily.ls - it will list all files and folder in your current directory
ls -l it will give detailt listing of all files and folders
ls -a it will list all files and folder in your current directory including hidden files (files and folders that begin with period)
pwd will print your working directory or simply your current directory
Navigating In Terminal
Here i may refer folder as directory so dont get confused. This is the term we use in linux for folders.cd - cd stands for change directory. we use cd follow by path address to navigate ro that folder.
Eg: cd Desktop will make desktop as my current directory.
cd / will make root as you current directory
cd ~ will make home as your current directory
Typing cd alone is same as cd ~ and it will make home as your current directory
cd .. will make parent directory i.e directory above your current directory
cd ../../ will take you two folder up
Creating Files And Folder
mkdir - we use mkdir follow by path or folder name to create a directoryEg mkdir car will create directory car in your current directory
to create folder recursively i.e folder inside folder inside folder we use -p flag
Eg mkdir -p vehicles/car/truck will create directory vehicles in your current directory which have car inside it and car has directory truck in it.
touch - we use touch follow by file name to create empty file.
Removing Files And Folders
rmdir - we use rmdir follow by path to to remove any directory. This will not work if folder you are trying to remove has something in it.rm -r to remove file recursively which can not be removed by rmdir
rm - We use this command to remove files
Categories
Blog Archive
-
2014
(79)
- August (1)
- June (5)
- May (20)
-
April
(43)
- Basic Terminal Commands For Linux
- Websites To Learn Computer Programming Languages
- Keyloggers And How To Be Safe From Keyloggers
- 6 Most Common Password Cracking Methods And Their ...
- What Is Phishing And How To Be Safe From Phishing ?
- Remove All Your Google Web History
- Hide Files Behind The Images
- Best Call Recorder for iPhone to Record Conversations
- jailbreak iDevice running iOS 7 using evasi0n7 [Wi...
- Add Folders and Software to My Computer in Windows...
- Make any Window transparent using a keyboard Short...
- Get Taskbar transparency in Windows 8
- View India in 360 with WoNoBo.com or with there An...
- How to Block Ads on Android Apps, Games and Browser’s
- Retrieve Your Wireless Network Security Key in Win...
- Use Alternate DNS Servers In Windows For Faster In...
- Use The Google Chrome Flash Plugin in Firefox in U...
- Encrypt Your Flash Drives In Ubuntu Linux Using Di...
- Use Google Chrome As The Default PDF Viewer In Ubuntu
- Change the GNOME Keyring Password For Easier Autom...
- Add a New Default Search Engine To Google Chrome W...
- Change the Default LightDM Background Image In Ubuntu
- Turn Off The Startup Sound In Windows Vista and Wi...
- Find, View and Analyze BSOD Dump Files
- Disable Aero (Permanently or Temporarily) in Windo...
- Change the Windows 7 Login Image without Editing t...
- Getting Started With Google Drive For Windows
- Use Google Web Fonts in the Google Docs Word Proce...
- Merge Two Partitions in Windows
- Change Where Chrome Downloads Files To
- View Photo EXIF Metadata on iPhone, Mac, and Windows
- Track Your iPhone, iPad, and Mac Computer
- Remove Duplicate Contacts on iPhone
- Create a Multiple Operating System Bootable USB Drive
- Guide to Taking Screenshots in Windows 8
- 99 Ways to Make Your Computer Fast
- Tips to Avoid Installing Browser Extensions with A...
- Some methods to Make Sure No One is Monitoring You...
- Get back the corrupted files in pendrive without a...
- Download YouTube videos using VLC media player wit...
- HIDE A FOLDER IN NOKIA PHONE WITHOUT ANY SOFTWARE
- Some Common Internet Error Codes With Meanings
- CCleaner is Now Available for Android
- March (10)