Skip to main content

Understanding Default Terminal Commands & Path

# Understanding Default Terminal Commands

This is very small topic to just introduce some specific symbols before introducing commands.
It will help you for better understanding. 


For demonstration, i am using " Cygwin64 Terminal " software which helps you to run Linux commands in Windows P.C 
you can also use Linux Terminal(any distribution).






shanti1 @ shanti2 : ~ $




shanti1 ® Username

shanti2 ® Computer Name – used to identify the computer over the network.

@ (at the rate) ®  Simply means user(shanti1) is working on a computer named (shanti2) over the network.

: ( colon )® Simple Separator

~ (tilde sign) ®  Shows that user working in home directory – if you change the directory, this sign will vanish.

$ (doller) ® Suggests you are working as a regular user in Linux.
Note - # (pound ) sign for root or master user displayed instead of $ (dollar sign).

.



# Path & its type


Path:-  A path, the general form of the name of a file or directory, specifies a unique location in a file system. A path points to a file system location by following the directory tree hierarchy expressed in a string of characters in which path components, separated by a delimiting character, represent each directory.  (Source - Wikipedia )

Eg. – For download folder

Windows  C:\documents\user\download

Linux - /home /user /downloads

Note – In Windows, backward slash (\) is used, but in Linux, forward slash (/) is used.


There are two kinds of path -

1- Absolute Path -- An absolute or full path points to the same location in a file system, regardless of the current working directory. To do that, it must include the root directory.

2- Relative Path -- A relative path starts from some given working directory, avoiding the need to provide the full absolute path.















Comments

Popular posts from this blog

Linux Distribution & Installation

Linux Distribution  Linux is an open source operating system.it is used by programmers, organisations, profit or non-profit organisation around the world in order to create o/s to suit their individual need/requirement (For a detailed description of Linux click here ). So basically Distribution is nothing but the version or types of Linux. In Windows XP 2000, Vista, Windows 8, 8.1 .10 etc are the windows various versions...like that Linux also has different versions or types, known as Distribution or Distro . There are more than thousands Linux operating system, as we all know that Linux is an open source operating system, therefore, anyone with little knowledge of Linux can modify its original source code and make its own Linux distribution is also called customised operating system (make modifications according to your need. ) Each version, types, kind of Linux o/s are called distributions or Distros. (in short, version developed for customising...

Introduction To Linux

Operating System An operating system (OS) is system software that manages computer hardware and software resources and provides common services for computer programs. Or The operating system (OS) is the most important program that runs on a computer, Without OS in your computer, can not able to perform any activity like playing a song, movies, browsing etc. # There are Three Popular Operating Systems  Windows  Linux    Mac OS # Kernel  Kernel is the heart of operation system.It is responsible for communicating between Hardware and User Applications. # What is Linux? It is an Operating System or Kernel. It is the programmed heart of any operating system that takes care of the fundamental stuff like communication of hardware with software. ◘ Linux is an operating system. ◘ Linus Torvalds created/developed Linux.     * Note - Receptive to changes, modifications suggested by its users...