28 June, 2010

important bash commands for system administration


As you know the terminal is the power tool that every linux user may have to come in contact even once in their computer life. Here is a post about controlling and managing your system using the gnome terminal.

How to shut down the system
 

$shutdown -h now

The word 'now' is enough to shutdown the system at this instant itself. You must be sudo before executing this command. You can specify the time instead of the word 'now' so that the system will shut after that time limit. Other  valid  formats  are  +m,  where m is the number of minutes to wait until shutting down and hh:mm which specifies the time on the 24hr clock.

       -r     reboots the system after shutdown

       -h    Requests  that  the system be either halted

              or powered off after it has been brought 
              down

       -c    Cancels  a  running  shutdown.   TIME is not 

              specified with this option, the first     
              argument is MESSAGE.

       -k    Only send out the warning messages and 

              disable  logins,  do  not actually bring the 
              system down.

How to take the root shell prompt
 

You can take the root shell prompt using the root password as follows

$ sudo su
 

How to switch between virtual consoles

In most debian based systems there are six switchable VT100-like character consoles available to start the command shell directly on the Linux host. Unless you are in a GUI environment, you can switch between the virtual consoles by pressing the Ctrl - Alt keys and one of the F1 --- F6 keys simultaneously. Each character console allows independent login to the account and offers the multiuser environment. You can get back to the X Window System, normally running on the virtual console 7, by pressing Ctrl - Alt - F7

Alternatively we can use the command chvt to  switch between virtual consoles from the command line
 

$ chvt  3        (switches to 3rd console )

 

How to quit the terminal

Press Ctrl + D to terminate the shell activity.



To create a new user account 


To create a new user account from the terminal type in as follows...


$ adduser carbon


This will add the user with name 'carbon'.  You can remove this user and it's home directory by using the following command.

$ deluser --remove-home carbon
 



Read rest of entry

08 May, 2010

Important RUN commands for Windows users

             Following are the important run commands that can be used easily for starting some programsin Windows.  To open the run dialog box press the  Windows+R key or goto start and then run.   

      Accessibility Controls  -  access.cpl
      Accessibility Wizard     – accwiz
      Add Hardware - Wizardhdwwiz.cpl
      Add/Remove Programs - appwiz.cpl
      Administrative Tools control – admintools     
      Adobe Acrobat (if installed) – acrobat
      Adobe Photoshop (if installed)- photoshop
      Automatic Updates - wuaucpl.cpl

      Bluetooth Transfer Wizard – fsquirt

      Calculator – calc
      Character Map – charmap
      Check Disk Utility – chkdsk
      Command Prompt – cmd
      Computer Management - compmgmt.msc
      Control Panel – control

      Date and Time Properties - timedate.cpl
      Device Manager - devmgmt.msc
      Disk Cleanup Utility- cleanmgr
      Disk Defragment- dfrg.msc
      Disk Management- diskmgmt msc
      Disk Partition Manager- diskpart
      Display Properties- control desktop

      Event Viewer- eventvwr.msc
    
      Files and Settings Transfer Tool- migwiz
      Findfast- findfast cpl
      Firefox (if installed)- firefox   
      Folders Properties- control folders
  
    Fonts- control fonts
     
      Group Policy Editor (XP Prof)- gpedit.msc

      Help and Support- helpctr
      HyperTerminal- hypertrm

      Indexing Service- ciadv.msc
      Internet Explorer- iexplore
      Internet Setup Wizard- inetwiz
      Internet Properties- inetcpl.cpl

                 try the following on command prompt also if you see nothing

      IP Configuration (Display Connection Configuration) - ipconfig/all 
      IP Configuration (Display DNS Cache Contents)- ipconfig /displaydns
      IP Configuration (Delete DNS Cache Contents)- ipconfig /flushdns
      IP Configuration (Release All Connections)- ipconfig /release
      IP Configuration (Renew All Connections)- ipconfig /renew
     


      Keyboard Properties - control keyboard


         
      Logs Out Of Windows - logoff    


      Microsoft Excel (if installed) – excel
      Microsoft Frontpage (if installed)- frontpg
      Microsoft Movie Maker – moviemk
      Microsoft Paint – mspaint
     
Microsoft Powerpoint (if installed)- powerpnt
      Microsoft Word (if installed)- winword
      Mouse Properties - control mouse
     
      Nero (if installed)- nero
      Network Connections - ncpa.cpl
      Network Setup Wizard - netsetup.cpl
      Notepad – notepad
      
      On Screen Keyboard – osk
      Outlook Express – msimn
    


      Password Properties - password.cpl
      Performance Monitor - perfmon.msc
      Phone and Modem Options - telephon.cpl
      Phone Dialer – dialer
      Power Configuration - powercfg.cpl
      Printers and Faxes - control printers
      Printers Folder – printers
      Registry Editor – regedit
      Remote Desktop – mstsc
      Removable Storage - ntmsmgr.msc
    
      Scanners and Cameras - sticpl.cpl
      Scheduled Tasks - control schedtasks
      Security Center - wscui.cpl
      Shared Folders - fsmgmt.msc
      Shuts Down Windows – shutdown
      Sounds and Audio - mmsys.cpl
      System Configuration Editor - sysedit
      System Configuration Utility - msconfig
      System Properties - sysdm.cpl

    
      Task Manager – taskmgr
      Telnet Client – telnet
    
      User Account Management- nusrmgr.cpl
      Utility Manager – utilman
    
      Windows Backup Utility (if installed)- ntbackup
      Windows Explorer – explorer
      Windows Firewall- firewall.cpl
      Windows Magnifier- magnify
      Windows Media Player – wmplayer
      Windows Messenger – msmsgs
      Windows Picture Import Wizard (need camera connected)- wiaacmgr
      Windows System Security Tool – syskey
      Windows Update Launches – wupdmgr
      Wordpad – write
Read rest of entry

22 April, 2010

Fixing the boot loader problem in Vista or Windows 7

Fixing the boot loader can be made simple if you have an installation disc of Windows with you…Hopes you are against piration… 

Windows Vista/ Windows 7  

      1.  Put the installation disc on the dvd drive and restart  your computer 

          to boot from the disc… 

     2. When booted select the Time, Language, Keyboard options     

         that suits for your  computer & click next

3.  Select the option Repair your computer in the next window of the wizard

4.  Choose the option Startup repair from the System recovery options…

5.  Recovery manager will automatically fix the problem of your boot loader.

If the automatical recovery fails, go back to system recovery options.

6.  Select the Command Prompt option from the list. It will open a command

prompt window

 
   7.  Type Bootrec.exe, and then press ENTER. The command prompt will  show you the possible  options.

 

    8. Type in Bootrec.exe  /FixMbr to fix the MBR. The FixMbr command will   
         only try to solve the problems that inhibit windows from booting. 
         It doesn’t overwrite the boot table..

 
    9. If the commands are properly entered then you will  get a  message 
        as shown in the following figure 

Read rest of entry
 

Terminal Diary | techblog Copyright © 2009 Gadget Blog is Designed by jintu jacob Powered by Blogger