WhileNetworking

  • Home
  • CCNA
  • Cisco Packet Tracer Download
    • Cisco packet tracer 6.3
    • cisco packet tracer 6.2
    • Cisco Packet Tracer 7
  • Linux Server Management
  • About Us
  • Privacy Policy
  • Contact Us

Linux process system discussion

You are most welcome to this post.
Linux process system
Really thanks to you for your interest in this topics. :)

In this post, we’ll see the Linux process system management of Linux, Linux boot up system, enable/disable/status of a service.

Linux process system discussion

Lets 1st login as root user.

[ece@localhost Desktop]$ su –

Password:

Last login: Sun May 8 22:59:38 EDT 2016 on pts/0

 

[root@localhost ~]# ps

[root@localhost ~]# ps –au     ; to see the pid, mem, cpu, process, cmd, tty

[root@localhost ~]# ps -u root ; List of process for specific user.

[root@localhost ~]# ps –ef

[root@localhost ~]# pidof systemd

1

[root@localhost ~]# firefox         ; Open firefox

[root@localhost ~]# jobs

 

Suppose that, you are going to execute a command, then you are showing a message, that is, “another process is running”. And the process id is shown. So to continue your work, you need to stop the process through this command.

[root@localhost ~]# kill 3670  ; kill <process id>

 

Sometimes, there is needed to force kill the process id. Then you need to write “kill -9 <process id>”

[root@localhost ~]# kill -9 3670

 

Linux Process management (CentOS)

Linux Process management (CentOS)

Linux Process management (CentOS)

Linux Process management (CentOS)

Linux Process management (CentOS)

Linux Process management (CentOS)

Linux Process management (CentOS)

Linux Process management (CentOS)

Linux Process management (CentOS)

Linux Process management (CentOS)

Linux Process management (CentOS)

Linux Process management (CentOS)

Force kill any task in Linux(CentOS/Red Hat)

Force kill any task in Linux(CentOS/Red Hat)

 

Linux Boot up Process:

==> CMD (tty)

BIOS/UEFI => MBR/GPT => GRUB2 => Kernel => systemd => Target =>

==> GUI (pts)

systemd:

One of the major changes in RHEL/CentOS 7.0 is the swtich to systemd, Which a system and service manager, that replaces SysV and Upstart, which was used in previous releases of Red Hat Enterprise Linux. The systemd is compatible with SysV and also with Linux Standard Base init scripts.

 

=> Fedora 17/RHEL/CentOS6 = SystemV/init

=> Ubuntu/SUSE/Debian = upstart

=> Fedora 18+/RHEL/CentOS7/Ubuntu-15 = systemd

 

Change Default Boot Time:

[root@serverX ~]# vim /boot/grub2/grub.cfg

:set nu

 

63   set timeout=40

 

[root@serverX ~]# reboot

 

Grub Entry Customize:

[root@serverX ~]# vim /boot/grub2/grub.cfg

 

In OLD system:

76 menuentry ‘CentOS Linux, with Linux 3.10.0-123.el7.x86_64’

91 menuentry ‘CentOS Linux, with Linux 0-rescue-fdbe8dca6eb044b6895149fc28e4a871’

 

In new system:

76 menuentry ‘Linux Server’

91 menuentry ‘CentOS Recovery mode’

 

[root@serverX ~]# reboot

 

[root@serverX ~]# vim /etc/motd

 

[root@serverX ~]# logout       ;logout

 

Working with Linux Kernel:

[root@serverX ~]# uname -r

[root@serverX ~]# yum list installed kernel-*

[root@serverX ~]# yum update kernel -y

[root@serverX ~]# yum list installed kernel-*

 

RHEL6 or Older Version:

[root@serverX ~]# ls /etc/init.d/

 

RHEL7 or more new version:

[root@serverX ~]# ls /lib/systemd/system/*.service

 

[root@serverX ~]# systemctl -t service

 

Start/Stop/Restart/status Services with systemctl:

 

[root@desktopX ~]# systemctl start crond.service

[root@desktopX ~]# systemctl status crond.service

 

[root@desktopX ~]# systemctl stop crond.service

[root@desktopX ~]# systemctl status crond.service

 

[root@desktopX ~]# systemctl restart crond.service

[root@desktopX ~]# systemctl reload XXXX.service

 

Enable / Disable services to run at boot time:

[root@desktopX ~]# systemctl enable crond.service

[root@desktopX ~]# systemctl disable crond.service

[root@desktopX ~]# systemctl status crond.service

 

Working with Restart/Poweroff/Hibernate/halt:

[root@desktopX ~]# systemctl halt

[root@desktopX ~]# systemctl reboot

[root@desktopX ~]# systemctl poweroff

[root@desktopX ~]# systemctl hibernate

[root@desktopX ~]# systemctl suspend

 

Working with Runlevels:

[root@desktopX ~]# systemctl get-default

graphical.target

 

[root@desktopX ~]# systemctl set-default multi-user.target

[root@desktopX ~]# systemctl get-default

multi-user.target

 

[root@desktopX ~]# reboot

 

[root@desktopX ~]# systemctl get-default

multi-user.target

 

[root@desktopX ~]# systemctl set-default graphical.target

 

[root@desktopX ~]# reboot

 

Jun 2, 2016Himadri
 

Share with friends :

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to email a link to a friend (Opens in new window)
  • Click to share on Pocket (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)

Related

Partition management in Linux (CentOS/Red Hat)How to recover lost password in Linux (CentOS/ Red Hat)?

Leave a Reply Cancel reply

4 × three =

Himadri

Hi, I'm Himadri. I love blogging with tech topics, specially computer networking. We'll have more fun in the upcoming day. Stay with me. :)

June 2, 2016 3 Comments Linux installation and server managementLinux boot up process, Linux service enable, linux service start230
Feel Free to Share :)
0
GooglePlus
0
Facebook
0
Twitter
0
Digg
0
Delicious
0
Stumbleupon
0
Linkedin
0
Pinterest
Find Us on Facebook
Choose a category !!
  • CCNA
  • Cisco Certification Exam
  • cisco packet tracer 6.2
  • Cisco packet tracer 6.3
  • Cisco Packet Tracer 7
  • Cisco Packet Tracer 7.1
  • Cisco Packet Tracer 7.2.1
  • Cisco Packet Tracer 7.3
  • Cyber Security
  • Engineering Ebooks
  • Excel
  • IELTS Ebook
  • Internet
  • Know computer
  • Know your computer
  • Laser Processing of Material
  • Linux installation and server management
  • PDF
  • Technology
  • Uncategorized
Top posts
  • Free download Principles of Electronics by VK Mehta
  • Packet tracer 6.2 student version for Linux - Free download
Archieves
Get latest updates by Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 19 other subscribers
W
SC
wordpress counter
Analytics
Recent Comments
    Browse by categories
    Cyber SecurityLinux installation and server managementCCNAKnow your computerKnow computerCisco Packet Tracer 7UncategorizedCisco Certification ExamInternetPDFCisco Packet Tracer 7.3Engineering EbooksCisco packet tracer 6.3cisco packet tracer 6.2Cisco Packet Tracer 7.1TechnologyExcelLaser Processing of MaterialCisco Packet Tracer 7.2.1IELTS Ebook
    Feel free to contact with us

    Hi, any kind of comment or suggestion is valuable to us. So feel free to contact with us.

    Email: himadri.shekhar.bd@gmail.com

    Name: WhileNetworking.com

    2021 © WhileNetworking
     

    Loading Comments...