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

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...

Terminal Vs GUI

Ques )  Most frequent task that you perform is? Ans. - Browsing,             - Creating Files,             - Moving Files,             - And Deleting Files. Most of the user perform only these operation on their systems.There's are the most common task performed frequently by the users on their computers. There are two ways to perform... 1 - CLI (Command Line Interface) 2- GUI (Graphical user interface) Benefits to use CLI: 1) Commands are flexible and offer more options. 2) Perform more with just one command. Eg – A new user account takes 4 to 5 steps to create while in CLI mode, it just takes a command  “sudo usermod - a - G home somesh” 3) Work on multiple files at a time. Eg – if you thinking to move 1000 of files it can take hours using GUI mode, whereas the same task performed using CLI mode take some seconds only. 4)...

Users in Linux

# Users in Linux: In Linux Operating System, There are three kinds of Users. All users have different kinds of permissions as well as Administrator or Root user set or modify the current user's permissions.   ◘ Regular user ◘ Root user ◘ Service user 1) Regular User: - It is an account which is used when you install o/s in your system. - And all files and folders stored in Home directories. - You are not able to access other users directory. 2) Root User: - It is also created at the time of installation, - Can access restricted files, install software and has administrative privileges. - Also called super user. - Whenever you have to perform any administrative task, you have to login as a ROOT user.    For that, the command is  " sudo " Then it will ask your password twice. 3) Service User: - Linux is widely used as a server o/s. - Services such as Apache, SQL, Squid etc have their own service account...