Add your custom tagline here.

Learn Pgrep and Pkill Command with Examples in Linux

Linux is loved by developers and enthusiasts alike. You can do lots of things you usually can’t do on operating systems such as windows and OSX.

Linux is the best operating system for programmers, developers, and anyone who wants to understand operating systems properly. Now Linux has many functions and capabilities. Today you are going to learn about Linux pgrep and pkill command and how you can use them to make your Linux experience worthwhile. As name suggests pgrep command is used to search the process based on name and pkill command will terminate or kill the process based on the name.

Prerequisites

  • A Linux operating system (screenshots are from a centos / rhel machine)

pgrep command

Syntax: # pgrep [options] pattern

pgrep-command-options-linux

Most Linux users recognize the grep command which is used to find specific words or characters. pgrep works in almost the same way. The pgrep command is used while searching for processes (based on name) that are running on the system at the time of use.

Let’s deep dive into pgrep command examples,

Example:1) List Process ID owned by specific user (-u)

When used, pgrep lists the process IDs which match the criteria that you specify. For example, when you type;

[[email protected] ~]# pgrep -u apache httpd
1274
1275
1278
1282
1283
1284
1286
1291
[[email protected] ~]#

The system lists all processes called httpd that are owned by apache user.

Example:2) List all processes owned by multiple users

Let’s assume we want to list all processes owned by root and apache user, execute following command,

[[email protected] ~]# pgrep -u apache,root

Here users are separated by commas (,)

Output:

pgrep-different-users

Example:3) Count Number of Matching Process (-c)

Let’s suppose we want to count number process owned by apache and root user, run the beneath command

[[email protected] ~]# pgrep -u apache -c
8
[[email protected] ~]# pgrep -u root -c
95
[[email protected] ~]#

In above command, ‘-c’ option is used to count number of process associated to a user.

Example:4) List Process IDs along with process name (-l & -a)

Let’s suppose we want to list process ids and process name associated to a user, then use -l or -a option in pgrep command. -l option will list only process name whereas -a will list full path of process name,

[[email protected] ~]# pgrep -u apache -l
4353 httpd
4354 httpd
4355 httpd
4356 httpd
4357 httpd
4358 httpd
4359 httpd
4360 httpd
[[email protected] ~]#

[[email protected] ~]# pgrep -u apache -a
4353 /usr/sbin/httpd -DFOREGROUND
4354 /usr/sbin/httpd -DFOREGROUND
4355 /usr/sbin/httpd -DFOREGROUND
4356 /usr/sbin/httpd -DFOREGROUND
4357 /usr/sbin/httpd -DFOREGROUND
4358 /usr/sbin/httpd -DFOREGROUND
4359 /usr/sbin/httpd -DFOREGROUND
4360 /usr/sbin/httpd -DFOREGROUND
[[email protected] ~]#

Example 5) List the process ids associated to a user using custom delimiter (-d)

Use ‘-d’ option in pgrep to list process ids of user by using custom delimiter, let’s suppose we list the process ids associated to apache user separated by comma (,) or space.

[[email protected] ~]# pgrep -u apache -d,
4353,4354,4355,4356,4357,4358,4359,4360
[[email protected] ~]# pgrep -u apache -d" "
4353 4354 4355 4356 4357 4358 4359 4360
[[email protected] ~]#

Example:6) List newest process name and it’s id (-n)

Let’s assume we want to list newest process name and its ids owned by root user, execute below pgrep command

Syntax:

# pgrep -u <user>

0
Read More

Open Wheel Race Series Now in GTA Online


The latest vehicle-based competitive mode for the title, the Open Wheel Race Series begins today in Rockstar Games’ GTA Online.


With support for up to 16 players, the high speed track-based car racing of the Open Wheel Race Series tasks players with making tactical tire choices, performing tight cornering maneuvers, and making pit stops in an effort to make every last second count.

Players can race with either the Progen PR4 or the Ocelot R88, and will have full visual and performance customization options at their disposal, including front and rear wings, wheels, tires, and racing liveries.

Note that the Open Wheel Racing Series will feature its own unique, brand-new driving mechanics. Players will be able to choose between Hard, Medium, and Soft tires in the pre-race lobby, which vary based on their grip and their handling in wet and dry conditions.

Vehicles in this mode will also have the Kinetic Energy Recovery System (KERS) installed, which gives players the chance to utilize a burst of engine power with a click in of the left analog stick. For those looking to get ahead, players can regenerate KERS by braking their way through corners.

Just be warned that vehicles in this mode will take damage when colliding with the environment or others, and resetting your vehicle will not repair it. Rather, to minimize the risk of encountering negative handling, players must utilize pit lanes to replace worn tires and repair any damage.

All those interested in diving into this mode can find it either under the “Jobs” tab in the Online Menu, or by simply driving up to the Open Wheel Race Series icon on the map (found near Los Santos International Airport). The Host for each event will be able to select the length of the race (in intervals of five laps, up to 25 laps total), along with the time of day and the weather conditions and

You can find a list of the races below:

Races

  • Open Wheel – In Due Course
  • Open Wheel – Urban Renewal
  • Open Wheel – New Wave
  • Open Wheel – More Haste More Speed
  • Open Wheel – Lap it Up
  • Open Wheel – Brace for Impact
  • Open Wheel – Height of Society
Source: Press Release
Open Wheel Race Series Now in GTA Online

The latest vehicle-based competitive mode for the title, the Open Wheel Race Series begins today in Rockstar Games’ GTA Online

Alien Hominid Invasion Gets Gameplay Reveal

Get your first look at The Behemoth’s Alien Hominid Invasion with the latest gameplay footage of the run ‘n’ gun

Shmups Ginga Force and Natsuki Chronicles Coming Stateside

Gear up for a double dose of shmup action – Rising Star Games is working with QUTE to release Ginga Force and Natsuki Chronicles for the PlayStation 4 and Steam later in 2020

Shadow of the Colossus and Sonic Forces Coming to PlayStation Plus in March 2020

Starting on March 3, 2020, all those subscribed to PlayStation Plus can get themselves Shadow of the Colossus and Sonic

0
Read More

Alien Hominid Invasion Gets Gameplay Reveal


Get your first look at The Behemoth’s Alien Hominid Invasion with the latest gameplay footage of the run ‘n’ gun.

A co-op run ‘n’ gun with support for up to four players, players will be able to equip and unlock an arsenal of weapons as they level up and invade Earth. In order to get ahead, players can abduct intel from enemies in an effort to sabotage their plans, observe the sheer curiosities and oddities of life, blow bosses to smithereens, and mutate into different Alien forms.

Alien Hominid Invasion: First Look Gameplay

For those at PAX East 2020 in Boston, all those curious can play the title at booth #10031.

The game will come out for the Nintendo Switch, Xbox One, and PC. All those interested in learning more can find the official website here.

Source: YouTube
Open Wheel Race Series Now in GTA Online

The latest vehicle-based competitive mode for the title, the Open Wheel Race Series begins today in Rockstar Games’ GTA Online

Alien Hominid Invasion Gets Gameplay Reveal

Get your first look at The Behemoth’s Alien Hominid Invasion with the latest gameplay footage of the run ‘n’ gun

Shmups Ginga Force and Natsuki Chronicles Coming Stateside

Gear up for a double dose of shmup action – Rising Star Games is working with QUTE to release Ginga Force and Natsuki Chronicles for the PlayStation 4 and Steam later in 2020

Shadow of the Colossus and Sonic Forces Coming to PlayStation Plus in March 2020

Starting on March 3, 2020, all those subscribed to PlayStation Plus can get themselves Shadow of the Colossus and Sonic Forces

The post Alien Hominid Invasion Gets Gameplay Reveal appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/gaming-news/alien-hominid-invasion-gets-gameplay-reveal/…

0
Read More

Shmups Ginga Force and Natsuki Chronicles Coming Stateside


Gear up for a double dose of shmup action – Rising Star Games is working with QUTE to release Ginga Force and Natsuki Chronicles for the PlayStation 4 and Steam later in 2020.

Ginga Force is a vertical shmup that features game modes like Score Attack and Story Mode, while Natsuki Chronicles features a side-scrolling perspective. Both games use the same setting, but they each have their own unique characters.

Learn more with the trailer for each title below:

Ginga Force – Announcement Trailer

Natsuki Chronicles – Announcement Trailer

According to Takeshi Osako, President of QUTE Corporation:

“Ginga Force and Natsuki Chronicles are both projects we placed a lot of effort into and we’re excited for the western release of both games. STGs are a special genre with a passionate fanbase and we’re excited to be working with Rising Star Games to reach an even broader audience with these two great shooters.”

For those attending PAX East 2020 in Boston, players can try out a demo of both games at booth #26017.

Source: Press Release
Open Wheel Race Series Now in GTA Online

The latest vehicle-based competitive mode for the title, the Open Wheel Race Series begins today in Rockstar Games’ GTA Online

Alien Hominid Invasion Gets Gameplay Reveal

Get your first look at The Behemoth’s Alien Hominid Invasion with the latest gameplay footage of the run ‘n’ gun

Shmups Ginga Force and Natsuki Chronicles Coming Stateside

Gear up for a double dose of shmup action – Rising Star Games is working with QUTE to release Ginga Force and Natsuki Chronicles for the PlayStation 4 and Steam later in 2020

Shadow of the Colossus and Sonic Forces Coming to PlayStation Plus in March 2020

Starting on March 3, 2020, all those subscribed to PlayStation Plus can get themselves Shadow of the Colossus and Sonic Forces

The post Shmups Ginga Force and Natsuki Chronicles Coming Stateside appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/gaming-news/shmups-ginga-force-and-natsuki-chronicles-coming-stateside/…

0
Read More

Warriors Orochi 4 Ultimate Review

Another year brings with it another Musou for fans to hack and slash their way through. Is Warriors Orochi 4 Ultimate worth the mindless slaughter, or should you pick up something else? Check out our review and find out.

Warriors Orochi 4 Ultimate Review

Warriors Orochi 4 Ultimate follows the stories of multiple characters from the Dynasty Warriors, Samurai Warriors, and Warriors Orochi series. At the start of the game, there is a mysterious force that brings the various characters into the same world. You get to choose from a few of these characters at the start, and as you progress, you unlock many many more. At first, it is suspected that Nobunaga Oda is the one to blame, but after beating him, you find out that there is something else going on.

Artifacts of power known as Orochi Bracelets have mysteriously appeared, giving these warriors god-like abilities. Certain characters like Zhao Yun can use this bracelet to transform himself into a stronger warrior, sort of akin to Super Saiyan. You are tasked with retrieving these bracelets before they can be used for evil means. To do this, the Gods above grant you magic to help you defeat whatever enemy you come across. Ares, Zeus, Wukong, Aphrodite, and Loki all make appearances, among other Gods.

The combat in Warriors Orochi 4 is similar to any other Warriors game. You pick a character to play (three characters in this game) and become a one-person army. You spam attack and build up massive combos in each level, annihilating weaker enemies in one or two shots. Enemy officers will put up more of a challenge, but only named characters will actually harm you. Even on normal difficulty, you can bite off a bit much and drop to low HP fairly quickly. I never died, but I did have all three of my characters in red HP when I first fought Lu Bu.

Warriors orochi 4 honest review

The newest addition to combat is the magic system. You have a new bar that fills up, and you can use that to launch small magic attacks, strong magic attacks, and special magic attacks. These skills bring your kill counts up by a large margin. Some of them have you riding a flaming boar into battle, calling down Thor’s hammer, or just using a massive energy blast. My favorite was one that caused a whirlpool around my character and absorbed enemies into me. The best part is that they work on enemy officers as well; they can be caught up in the whirlpool just as easily as a grunt.

With over 170 characters to unlock, you will find plenty to do. The simple fact is though when you find someone who works, you won’t switch characters that often. It isn’t worth gambling on a new character who might not have magic you like or a special attack you don’t like. The officers you aren’t using can be sent on expeditions to level up and collect new weapons. You can only send a handful of them, but it beats leaving them there doing nothing. They can also be brought as support characters for your missions. On occasion, support members will launch an attack or defend you from hits while on a mission. …

0
Read More

Cosplay Wednesday – Mega Man’s Zero


Originally released for the Game Boy Advance and the Nintendo DS, the Mega Man Zero / ZX Legacy Collection has made its way to consoles this month. In honor of this collection, Gamers Heroes takes a look at a cosplay of the series mainstay, Zero.

Shown off during Anime Expo 2011, hakuramen’s cosplay of Mega Man Zero successfully captures the essence of the character. Created in just two weeks, he made this creation with the help of craft foam and cardboard, along with — with some plexiglass used for the sword and crystal. He said that he is happy with how the costume turned out, and has plans to add a bit more for future conventions.

Credit goes to Nelson Castro for the photos.

Mega Man Zero Cosplay



You can find Hakuramen on DeviantArt here.

Do you enjoy a bit of gaming cosplay? Or maybe you’re passionate enough to do it full time. Drop me a line at casey@gamersheroes.com and we’ll feature some of your cosplay.

The post Cosplay Wednesday – Mega Man’s Zero appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/features/cosplay-wednesday-mega-mans-zero/…

0
Read More

Shadow of the Colossus and Sonic Forces Coming to PlayStation Plus in March 2020


Starting on March 3, 2020, all those subscribed to PlayStation Plus can get themselves Shadow of the Colossus and Sonic Forces.

A remake of Team ICO’s PlayStation 2 classic, Shadow of the Colossus tells the story of Wander, who must take down sixteen massive beings known as colossi to restore a girl named Mono’s life. Each colossi has a different weak point, and some have considered it to be a puzzle game. You can read our review of the title here.

Released in 2017 by Sonic Team and SEGA, Sonic Forces features “Classic Sonic,” “Modern Sonic,” and a custom character known as the “Avatar.” Carried over from Sonic Mania, players must contend with the threat of the Phantom Ruby and the mercenary Infinite. You can read our review of the title here.

Learn more with the following video by PlayStation Access:

PlayStation Plus Monthly Games – March 2020

Source: YouTube
Shadow of the Colossus and Sonic Forces Coming to PlayStation Plus in March 2020

Starting on March 3, 2020, all those subscribed to PlayStation Plus can get themselves Shadow of the Colossus and Sonic Forces

Samurai Jack: Battle Through Time Announced

Adult Swim Games and Soleil Games are teaming up to bring the Emmy Award-winning series Samurai Jack to the world of video games in Samurai Jack: Battle Through Time

Arcade Racer Hotshot Racing Announced

A love letter to the classic ‘90s arcade racers of old, Lucky Mountain Games, Sumo Digital, and Curve Digital’s Hotshot Racing will launch this spring

Golf With Your Friends Coming to Consoles

Get ready to take a good walk spoiled when Team17 and Blacklight Interactive’s Golf With Your Friends comes to consoles in 2020

The post Shadow of the Colossus and Sonic Forces Coming to PlayStation Plus in March 2020 appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/gaming-news/shadow-of-the-colossus-and-sonic-forces-coming-to-playstation-plus-in-march-2020/…

0
Read More

Samurai Jack: Battle Through Time Announced


Adult Swim Games and Soleil Games are teaming up to bring the Emmy Award-winning series Samurai Jack to the world of video games in Samurai Jack: Battle Through Time.

Set to launch this summer for the PlayStation 4, Xbox One, Nintendo Switch, and PC, this title is set immediately before Samurai Jack’s ultimate confrontation with Aku. Trapped in an alternate timeline, he must take on a number of the series’ most notorious villains with the help of his friends and allies.

The title will pay host to classic gameplay and combat with over a dozen melee and ranged weapons, a stylized 3D art design, and the cartoon’s trademark blend of drama and humor.

Learn more with the trailer below:

Samurai Jack: Battle Through Time | adult swim games

Source: Press Release
Shadow of the Colossus and Sonic Forces Coming to PlayStation Plus in March 2020

Starting on March 3, 2020, all those subscribed to PlayStation Plus can get themselves Shadow of the Colossus and Sonic Forces

Samurai Jack: Battle Through Time Announced

Adult Swim Games and Soleil Games are teaming up to bring the Emmy Award-winning series Samurai Jack to the world of video games in Samurai Jack: Battle Through Time

Arcade Racer Hotshot Racing Announced

A love letter to the classic ‘90s arcade racers of old, Lucky Mountain Games, Sumo Digital, and Curve Digital’s Hotshot Racing will launch this spring

Golf With Your Friends Coming to Consoles

Get ready to take a good walk spoiled when Team17 and Blacklight Interactive’s Golf With Your Friends comes to consoles in 2020

The post Samurai Jack: Battle Through Time Announced appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/gaming-news/samurai-jack-battle-through-time-announced/…

0
Read More

Arcade Racer Hotshot Racing Announced


A love letter to the classic ‘90s arcade racers of old, Lucky Mountain Games, Sumo Digital, and Curve Digital’s Hotshot Racing will launch this spring.

This title will pay host to colorful low-polygonal visuals, boost-fuelled gameplay with an emphasis on drifting, and a constant 60 frames per second in its single player modes across all platforms. Players will be able to choose from eight different drivers, 16 tracks, and game modes like Grand Prix, Time Trial, Cops and Robbers, and Drive or Explode.

Learn more with the trailer below:

Hotshot Racing | Official Reveal Trailer | Curve Digital

According to Curve Digital’s Publishing Director Simon Byron:

“When we first played Hotshot Racing we were immediately transported to the halcyon days of our youth when we used to pop quarters into classic arcade racers like Virtua Racing, Crusin’ USA, SEGA Rally and others that used to punctuate seafronts across the UK. It’s fantastic to see this type of gameplay make a triumphant return and we can’t wait to see what people make of it!”

The game will come out for the PlayStation 4, Xbox One, Nintendo Switch, and PC.

Source: Press Release
Shadow of the Colossus and Sonic Forces Coming to PlayStation Plus in March 2020

Starting on March 3, 2020, all those subscribed to PlayStation Plus can get themselves Shadow of the Colossus and Sonic Forces

Samurai Jack: Battle Through Time Announced

Adult Swim Games and Soleil Games are teaming up to bring the Emmy Award-winning series Samurai Jack to the world of video games in Samurai Jack: Battle Through Time

Arcade Racer Hotshot Racing Announced

A love letter to the classic ‘90s arcade racers of old, Lucky Mountain Games, Sumo Digital, and Curve Digital’s Hotshot Racing will launch this spring

Golf With Your Friends Coming to Consoles

Get ready to take a good walk spoiled when Team17 and Blacklight Interactive’s Golf With Your Friends comes to consoles in 2020

The post Arcade Racer Hotshot Racing Announced appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/gaming-news/arcade-racer-hotshot-racing-announced/…

0
Read More

Golf With Your Friends Coming to Consoles


Get ready to take a good walk spoiled when Team17 and Blacklight Interactive’s Golf With Your Friends comes to consoles in 2020.

Set to release for the PlayStation 4, Xbox One, and Nintendo Switch, Golf With Your Friends lives up to its title with 12-player online multiplayer support. Over 10 unique courses have been included, which run the gamut from tranquil forests to haunted houses to even the far reaches of space. To keep players going, players can unlock skins, hats and trails.

No need to play nice though – players can hinder the progress of their friends with powerups like honey, the transformation of balls into squares, and even the chance to freeze them in their tracks.

Learn more with the trailer below:

Golf With Your Friends Console Announcement Trailer

According to Kailan Clark, Lead Developer from Blacklight Interactive:

“We are thrilled to announce Golf With Your Friends is making its way onto consoles. We’re excited for players to get their hands on our game and have fun playing golf with their friends!”

Max Everingham, Head of Publishing Team17, added:

“After the amazing success of Golf With Your Friends on Steam Early Access, Team17 is excited to offer you the chance to play crazy golf with up to 11 of your friends on console.”

Source: Press Release
Shadow of the Colossus and Sonic Forces Coming to PlayStation Plus in March 2020

Starting on March 3, 2020, all those subscribed to PlayStation Plus can get themselves Shadow of the Colossus and Sonic Forces

Samurai Jack: Battle Through Time Announced

Adult Swim Games and Soleil Games are teaming up to bring the Emmy Award-winning series Samurai Jack to the world of video games in Samurai Jack: Battle Through Time

Arcade Racer Hotshot Racing Announced

A love letter to the classic ‘90s arcade racers of old, Lucky Mountain Games, Sumo Digital, and Curve Digital’s Hotshot Racing will launch this spring

Golf With Your Friends Coming to Consoles

Get ready to take a good walk spoiled when Team17 and Blacklight Interactive’s Golf With Your Friends comes to consoles in 2020

The post Golf With Your Friends Coming to Consoles appeared first on GamersHeroes.

from GamersHeroes http://www.gamersheroes.com/gaming-news/golf-with-your-friends-coming-to-consoles/…

0
Read More