Linux Commands Part 9 - 10

Tags: linux-com-book

  • User accounts are defined in the /etc/passwd file

  • groups are defined in the /etc/group file

file types
permission attributes
chmod permission symbolic notation
chmod notation example
file permission in octal

chown and chgrp

  • chown : to change the file ownership

  • chgrp : to change the group

d|rwx|rwx|rwx

  • d : directory

  • 1st block for user

  • 2nd block for group (of user)

  • 3rd block for other

numbering system : read = 4 write = 2 exec = 1

Processes

  • When a system starts up, the kernel initiates a few of its own activities as processes and launches a program called init

  • init, in turn, runs a series of shell scripts (located in /etc) called init scripts

  • The fact that a program can launch other programs is expressed in the process scheme as a parent process producing a child process

process state diagram

Information shown by top

top field information
top field information
  • to kill a process : kill -signal [PID]

process signals
process signals part 2
process signals part 3

Last updated

Was this helpful?