Monday 8 December 2014

File system In REDHAT

(/) contains

  • Boot-Contains boot file
  • etc-configuration file
  • bin-Privileged commands(binary)
  • sbin-Non privileged commands(system binary)
  • root-a super user(profile)
  • val-log files
  • dev-devices details of hardware
  • opt-plugins
  • net-network(it contains network data)
  • mnt-Removable media mount
  • proc-read only files
  • user-documentation about the user
  • Home-/home contains profile for each normal user
  • lib-command need this to be executed

Saturday 6 December 2014

Create a file in Redhat

In this page i am just gonna trach you how to create a file in Redhat using the Terminal
so seat tight

Create a File
  • type touch (file name)
  • Then type ls (shows the list of files)
  • then type Cat > (file name)
  • Enter file data (eg.your name,DOB,Contact number, etc)
  • then type ls

To show the file data 

type Cat (File name)



important notes:-
Logout command will only work when use "-" during the SU commands
(su - student)

without "-" we have to use the exit command to logout

Friday 5 December 2014

Chapter 1 Basics

Before going to red hat we should learn about run levels
run levels are the commands
run levels

init0 - To shut-down
init1- Single user mode{password recovery}
init2- Multi user mode without NFS
init3- Multi User mode with NFS
init4- Multi User mode with NFS(IN GUI MODE)
init5- Multi User mode with NFS(DEFAULT RUN LEVEL)
init6- REBOOT

So first of all we will learn How to change a password

  • Reboot Your System (Alt+Clt+Delete)
  • In the OS selection Press E to Edit
  • In the kernel version again press E
  • Then Type (SPACE) 1
  • Then Press B
  • Type passwd (User-name)
  • Type and Re-type the new password

Some Basic Commands 

  • date (show current system date)
  • date -s (to set date)
  • cal (calender)
  • cal -y (shows entire year)
  • cal -m(calender shows monday as first day of week)
  • cal -s (sunday as the first day of the week)
  • cal -j (shows the julien calender)
  • cal -3 (shows current month with before and after)

Helping Commands

  • Man (command name)
  • info (command name)
  • Whatis (command Name)
  • (Command)   --help