Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Command Line Fundamentals

You're reading from   Command Line Fundamentals Learn to use the Unix command-line tools and Bash shell scripting

Arrow left icon
Product type Paperback
Published in Dec 2018
Publisher
ISBN-13 9781789807769
Length 314 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Vivek Nagarajan Vivek Nagarajan
Author Profile Icon Vivek Nagarajan
Vivek Nagarajan
Arrow right icon
View More author details
Toc

Job Control

Most of the commands we have tried so far take only a few seconds, at most, to complete, but in the real world, it is not uncommon to have tasks that run for long periods of time, which could be anywhere from minutes to hours or even weeks. In fact, some tasks never exit. They run forever, reading live data and processing it. A task or command that is running either in the foreground (the default) or background (when launched with &) is called a job. In this topic, we will learn about the mechanisms that are used to control jobs.

Keyboard Shortcuts for Controlling Jobs

Various keyboard shortcuts can be used to control jobs. These shortcuts send a signal to a program, which can be of various types and have conventional names. Some of these shortcuts and their respective functionalities are discussed in the following table:

Figure 3.1: A table showing the shortcuts and their functionalities

Look at the following examples:

robin ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image