Sponsored Links

December 22, 2014

Some linux commands

  1. To know in which directory you are, while working in terminal.
    chmod-R777/directory
  2. To decide whether the user is accessed to do the work or not.
    pwd (enter)
  3. Adminitrator root mode is denoted by #.
  4. User mode is denoted by $.
  5. To shut down the computer.
    halt (enter)
    poweroff (enter)
    shutdown -h now (enter)
  6. To restart the computer.
    reboot (enter)
  7. To restart the network service.
    /etc/init.d/networking.restart (enter)

Runlevels of Linux

  • car/etc/inittab(enter)
  • Runlevel 0: #init 0(enter): Halt,shutdown
  • Runlevel 1: #init 1(enter): Single user mode, Emergency mode
  • Runlevel 2: #init 2(enter): Multiuser mode without network support
  • Runlevel 3: #init 3(enter): Multiuser mode with network support
  • Runlevel 4: #init 4(enter): Research purpose
  • Runlevel 5: #init 5(enter): GUI and X-support
  • Runlevel 6: #init 6(enter): Restart

No comments:

Post a Comment