{"id":92,"date":"2015-04-30T06:18:08","date_gmt":"2015-04-30T06:18:08","guid":{"rendered":"http:\/\/localhost\/blog\/?p=92"},"modified":"2015-04-30T07:55:52","modified_gmt":"2015-04-30T07:55:52","slug":"getting-started-with-linux","status":"publish","type":"post","link":"http:\/\/www.mandcgroup.in\/blog\/getting-started-with-linux\/","title":{"rendered":"Getting Started With Linux"},"content":{"rendered":"<p style=\"text-align: justify;\">One way or another you are sitting in front of a screen that is connected to a computer that is running Linux.You may be working with a graphical user interface(GUI) or a textual interface.If you are working with a GUI, you will need to use a terminal emulator such as xterm, Konsole, or GNOME Terminal, to follow along with the examples in this website.<\/p>\n<p style=\"text-align: justify;\"><!--more--><\/p>\n<p style=\"text-align: justify;\"><strong>LOGGING IN<\/strong><\/p>\n<ul style=\"text-align: justify;\">\n<li>#(hash) symbol represent the root user.<\/li>\n<li>$(dollar) symbol represent the simple user.<\/li>\n<li>There are Six terminals in Linux.: alt+\u00a0Ctrl\u00a0+f1 \u2013 GUI and alt+ctrl+f2,3,4,5,6 \u00a0Command Based or Textual Interface.<\/li>\n<li>Press alt+\u00a0Ctrl\u00a0+f2 and\u00a0log in\u00a0in a terminal with the user name and password.<\/li>\n<li>If you are admin then username will be root.<\/li>\n<li>Here we will\u00a0log in\u00a0through admin i.e. #(pound) symbol.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Super User\u00a0Access : While you are logged in the user named root, you are referred to as Superuser or administrator and have extraordinary privileges.<\/p>\n<p style=\"text-align: justify;\"><strong><em>[root@www ~]# passwd<\/em><\/strong><br \/>\n<strong><em>Changing password for user root.<\/em><\/strong><br \/>\n<strong><em>New password: <\/em><\/strong><br \/>\n<strong><em>Retype new password: <\/em><\/strong><br \/>\n<strong><em>passwd: all authentication tokens updated successfully.<\/em><\/strong><\/p>\n<p style=\"text-align: justify;\"><em>[root@www ~]#<\/em> passwd mc712<br \/>\nChanging password for user mc712.<br \/>\nNew password:<br \/>\nRetype new password:<br \/>\npasswd: all authentication tokens updated successfully.<\/p>\n<p style=\"text-align: justify;\"><strong>su : SWITCH USER<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@www ~]# su mc712<br \/>\n[mc712@www ~]$<\/p>\n<p style=\"text-align: justify;\"><strong>\u00a0Working With The SHELL<\/strong><\/p>\n<p style=\"text-align: justify;\">When you log in and working in a textual (nongraphical) environment, and when you are using a terminal emulator in a graphical environment, you are using the shell as a command interpreter. That is , the shell displays a prompt, you are type a command, and the shell executes the command and displays another prompt.<\/p>\n<p style=\"text-align: justify;\">\u00a0<strong>WHICH SHELL ARE YOU RUNNING ?<\/strong><\/p>\n<p style=\"text-align: justify;\">You are probably running bash, but you may be running tcsh or another shell such as the Z Shell (zsh).You can identify the shell you are running by using the ps utility.<\/p>\n<p style=\"text-align: justify;\"><em>[root@www ~]#<\/em><strong><em> ps<\/em><\/strong><br \/>\n<strong><em> PID TTY TIME CMD<\/em><\/strong><br \/>\n<strong><em> 3169 pts\/2 00:00:00 bash<\/em><\/strong><br \/>\n<strong><em> 3178 pts\/2 00:00:00 ps<\/em><\/strong><\/p>\n<p style=\"text-align: justify;\">This command shows tha you are running two utilities or commands: bash and ps.If you are running tcsh, ps will display tcsh instead of bash.If you are running a different shell, ps will display its name.<\/p>\n<p style=\"text-align: justify;\">\u00a0<strong>CORRECTING MISTAKES<\/strong><\/p>\n<p style=\"text-align: justify;\">You can correct typing mistakes in several ways: You can erase one character at a time, back up a word at a time, or back up to the beginning of the command line in one step.After you press Enter, it is too late to correct a mistake.<\/p>\n<p style=\"text-align: justify;\"><strong>\u00a0ERASING A CHARACTER<\/strong><\/p>\n<ul style=\"text-align: justify;\">\n<li>The default erase key is BACKSPACE. If this key does not work, try DELETE or\u00a0Ctrl\u00a0+H.<\/li>\n<li>DELETING A WORD \u2013\u00a0Ctrl\u00a0+w<\/li>\n<li>DELETING A LINE \u2013 CTRL+U<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>ABORTING\u00a0Execution<\/strong><\/p>\n<ul style=\"text-align: justify;\">\n<li>To terminate a program from a character-based display, press the interrupt key\u00a0Ctrl\u00a0+c.<\/li>\n<li>Ctrl\u00a0+z for suspends a program.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>REPEATING\/EDITING COMMAND LINES<\/strong><\/p>\n<ul style=\"text-align: justify;\">\n<li>To repeat a previous command on the command line, press the UP ARROW key, Each time you press UP ARROW, you see an earlier command line.<\/li>\n<li>To\u00a0re execute\u00a0the displayed command line, press ENTER.<\/li>\n<li>Press DOWN ARROW to browse through the command lines in the other direction.<\/li>\n<li>The RIGHT and LEFT ARROW keys move the cursor back and forth along the displayed command line.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>HELPING COMMAND\u2019s : Where TO FIND DOCUMENTATION<\/strong><\/p>\n<ul style=\"text-align: justify;\">\n<li>Distribution of\u00a0Linux\u00a0typically do not come with hardcopy reference manuals.<\/li>\n<li>However,its online documentation has always been one of Linux\u2019s strengths.<\/li>\n<li>The manual(or man) and info pages have been available via the man and info utilities since early releases of the operating system.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">THE \u2013help Option<\/p>\n<p style=\"text-align: justify;\">Most utilities have help option that displays the information about the utility.<\/p>\n<p style=\"text-align: justify;\"><em>[root@www ~]#<\/em><strong><em> cat \u2013help<\/em><\/strong><br \/>\n<strong><em>Usage: cat [OPTION]\u2026 [FILE]\u2026<\/em><\/strong><br \/>\n<strong><em>Concatenate FILE(s), or standard input, to standard output.<\/em><\/strong><\/p>\n<p style=\"text-align: justify;\"><strong><em>-A, \u2013show-all equivalent to -vET<\/em><\/strong><br \/>\n<strong><em> -b, \u2013number-non-blank\u00a0number nonempty output lines<\/em><\/strong><br \/>\n<strong><em> -E, \u2013show-ends display $ at end of each line<\/em><\/strong><br \/>\n<strong><em> -n, \u2013number number all output lines<\/em><\/strong><br \/>\n\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026<br \/>\n\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026<\/p>\n<p style=\"text-align: justify;\"><em>[root@www ~]#<strong> who \u2013help<\/strong><\/em><br \/>\n<em><strong>Usage: who [OPTION]\u2026 [ FILE | ARG1 ARG2 ]<\/strong><\/em><br \/>\n<em><strong>Print information about users who are currently logged in.<\/strong><\/em><\/p>\n<p style=\"text-align: justify;\"><em><strong>-a, \u2013all same as -b -d \u2013login -p -r -t -T -u<\/strong><\/em><br \/>\n<em><strong> -b, \u2013boot time of last system boot<\/strong><\/em><br \/>\n<em><strong> -u, \u2013users list users logged in<\/strong><\/em><br \/>\n<em><strong> \u2013message same as -T<\/strong><\/em><br \/>\n<em><strong> \u2013writable same as -T<\/strong><\/em><br \/>\n<em><strong> \u2013help display this help and exit<\/strong><\/em><br \/>\n<em><strong> \u2013version output version information and exit<\/strong><\/em><\/p>\n<p style=\"text-align: justify;\"><strong>man: Displays The SYSTEM MANUAL<\/strong><\/p>\n<p style=\"text-align: justify;\">The man utility displays manual pages from the system documentation.This documentation is helpful when yoy know which utility you want to use but have forgotten exactly how to use it.<\/p>\n<p style=\"text-align: justify;\"><em>[root@www ~]# <strong>man write<\/strong><\/em><\/p>\n<p style=\"text-align: justify;\"><em><strong>WRITE(1) Linux Programmer\u2019s Manual WRITE(1)<\/strong><\/em><\/p>\n<p style=\"text-align: justify;\"><em><strong>NAME<\/strong><\/em><br \/>\n<em><strong> write \u2013 send a message to another user<\/strong><\/em><\/p>\n<p style=\"text-align: justify;\"><em><strong>SYNOPSIS<\/strong><\/em><br \/>\n<em><strong> write user [ttyname]<\/strong><\/em><\/p>\n<p style=\"text-align: justify;\"><em><strong>DESCRIPTION<\/strong><\/em><\/p>\n<p style=\"text-align: justify;\"><em><strong> Write allows you to communicate with other users, by copying lines from your terminal to theirs.<\/strong><\/em><em><strong><br \/>\n<\/strong><\/em><\/p>\n<p style=\"text-align: justify;\">When you run the write command, the user you are writing to gets a message of the<br \/>\nform:<\/p>\n<p style=\"text-align: justify;\">Message from <strong>yourname@yourhost<\/strong> on yourtty at hh:mm<br \/>\n\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026.<br \/>\n\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026.<br \/>\n<strong>info: Displays Information About UTILITIES<\/strong><\/p>\n<p style=\"text-align: justify;\">The info utility includes a tutorial on itself and documentation on many Linus shells, utilities and programs developed by the GNU Project.<\/p>\n<p style=\"text-align: justify;\">When you see the initial <strong>info screen<\/strong>,you can press :<\/p>\n<p style=\"text-align: justify;\"><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/Getting-started-with-Linux.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-93\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/Getting-started-with-Linux.png\" alt=\"Getting started with Linux\" width=\"403\" height=\"383\" srcset=\"http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/Getting-started-with-Linux.png 403w, http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/Getting-started-with-Linux-300x285.png 300w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/a><\/p>\n<ul style=\"text-align: justify;\">\n<li>h to go through an interactive tutorial an info.<\/li>\n<li>? to list info utilities.<\/li>\n<li>SPACE to scroll through the menu of items for which\u00a0information\u00a0is available.<\/li>\n<li>m followed by the name of the menu item you want to display<\/li>\n<li>q to quit.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Different between man and info commands :<\/strong><\/p>\n<ul style=\"text-align: justify;\">\n<li>The info utility displays more complete and up-to-date information on GNU utilities than does man.<\/li>\n<li>When a man page displays abbreviated on a utility that is covered by info, the man page refers you to info.<\/li>\n<li>The man utility frequently displays the only information available on non-GNU utilities.<\/li>\n<li>When info displays information on non-GNU utilities, it is frequently a copy of the man page.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>MORE ABOUT LOGGING IN<\/strong><\/p>\n<p style=\"text-align: justify;\">This section covers what to do if you have a problem logging in, how to use virtual consoles, how to log in remotely, and how to change your password.<\/p>\n<p style=\"text-align: justify;\"><strong>WHAT TO DO IF YOU CANNOT LOG IN<\/strong><\/p>\n<p style=\"text-align: justify;\">When you enter your username and passwor incorrectly, the system displays an error message after you enter both your username and your password.This message indicates that you have enter either the login name or the password incorrectly or that they are not valid.<\/p>\n<p style=\"text-align: justify;\">Some common reasons that\u00a0login\u00a0fail are listed here:<\/p>\n<ul style=\"text-align: justify;\">\n<li>Log In on THe Right machine<\/li>\n<li>Login Name and Password Are Case sensitive<\/li>\n<li>Make Sure Your Login Name is valid.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>LOGGING OUT<\/strong><\/p>\n<p style=\"text-align: justify;\">To logout from a character based interface, press ctrl+D or give the command exit in response to the shell prompt.<\/p>\n<p style=\"text-align: justify;\"><strong>VIRTUAL CONSOLES or VIRTUAL TERMINALS<\/strong><\/p>\n<p style=\"text-align: justify;\">When running Linux in a personal computer, you frequently work with the display and keyboard attached to the computer. Using this physical console, you can access as many as 63 virtual consoles (also called virtual Terminals). Some are set up to allow logins, whereas others act as graphical displays.To switch between virtual consoles, hold down the ctrl and Alt keys and press the function key that corresponds to the console you want to view. For example, ctrl-Alt-f5 displays the fifth terminal.<\/p>\n<p style=\"text-align: justify;\">Typically, <strong>six virtual consoles<\/strong> are active and have text login sessions running. When you want to use both a character-based interface and a GUI, you can set up a character-based session on the virtual console and a graphical session on another.<\/p>\n<p style=\"text-align: justify;\"><strong>CHANGING YOUR PASSWORD<\/strong><\/p>\n<p style=\"text-align: justify;\">If someone else assigned you a password, it is a good idea to give yourself a new one. A good password is seven or eight characters long and contains a combination of numbers ,\u00a0uppercase\u00a0and lowercase letters, and punctuation characters.Avoid using control characters such as\u00a0Ctrl\u00a0+H because they have a special meaning to the system, making it impossible for you to log in. Do not use names, words from English or other languages, or other familiar words that someone can easily guess.<\/p>\n<p style=\"text-align: justify;\"><strong>PROTECT YOUR PASSWORD<\/strong><\/p>\n<ul style=\"text-align: justify;\">\n<li>Do not allow someone to find out your password: Do not put your password in a file that is not encrypted.<\/li>\n<li>CHOOSE A PASSWORD that is Difficult to guess.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">To change your password , give the command passwd from a command line:<\/p>\n<p style=\"text-align: justify;\"><em>[root@www ~]# <strong>passwd<\/strong><\/em><br \/>\n<em><strong>Changing password for user root.<\/strong><\/em><br \/>\n<em><strong>New password: <\/strong><\/em><br \/>\n<em><strong>Retype new password: <\/strong><\/em><br \/>\n<em><strong>passwd: all authentication tokens updated successfully.<\/strong><\/em><br \/>\n<em>[root@www ~]#<strong> passwd mc712<\/strong><\/em><br \/>\n<em><strong>Changing password for user mc712.<\/strong><\/em><br \/>\n<em><strong>New password: <\/strong><\/em><br \/>\n<em><strong>Retype new password: <\/strong><\/em><br \/>\n<em><strong>passwd: all authentication tokens updated successfully.<\/strong><\/em><\/p>\n<p style=\"text-align: justify;\">A password should meet the following criteria to be relatively secure. Only the first item is mandatory.<\/p>\n<ul style=\"text-align: justify;\">\n<li>It must be at least six characters long<\/li>\n<li>It should not be a word in a dictionary of any language.<\/li>\n<li>It should not be the name of a person, place, pet, or other thing that might be discovered easily.<\/li>\n<li>It should contain at least two letters and one digit.<\/li>\n<li>It should not be your login name, the reverse of your login name.<\/li>\n<li>If you are changing you password , the new password should differ from the old one by at least three\u00a0characters.<\/li>\n<li>Changing the case of a\u00a0character\u00a0does not make it count as a different character.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>ERROR MESSAGE :<\/strong><\/p>\n<ul style=\"text-align: justify;\">\n<li>If you enter wrong password, the system displays an error message : \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<strong>Sorry, password do not match.<\/strong><\/li>\n<\/ul>\n<ul style=\"text-align: justify;\">\n<li>If your password is not long enough,the system displays an error message : \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<strong>BAD PASSWORD: it is too short.<\/strong><\/li>\n<\/ul>\n<ul style=\"text-align: justify;\">\n<li>When it is too simple,the system displays an error message : \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<strong>BAD PASSWORD: it is too simplistic\/systematic.<\/strong><\/li>\n<\/ul>\n<ul style=\"text-align: justify;\">\n<li>When it is formed from words,the system displays an error message: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<strong>BAD PASSWORD: it is based on a dictionary word.<\/strong><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">If you are a simple user and forget your password, superuser can change it and tell you your new password.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One way or another you are sitting in front of a screen that is connected to a computer that is running Linux.You may be working with a graphical user interface(GUI) or a textual interface.If you are working with a GUI, you will need to use a terminal emulator such as xterm, Konsole, or GNOME Terminal, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-redhat-linux-operating-system"],"_links":{"self":[{"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":3,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"predecessor-version":[{"id":102,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/posts\/92\/revisions\/102"}],"wp:attachment":[{"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}