Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Thursday, January 11, 2024

Linux Process Management Instructor Guide

https://www.amazon.com/dp/B0CRY8TZ1K/

In a Linux system, utilizing commands to manage processes is an essential part of working in the environment. Especially, if a process becomes stuck, it could indeed take on all the system resources. This processing could include foreground and background processes. Therefore, this instructor guide covers the most common ways to stop and manage processes. The commands can be utilized for personal, educational, or corporate usage. It is envisioned that the instructor utilize the material from this guide via a demonstration type format.

Contents

How to use and run commands

Foreground vs Background Processes

jobs

fg

bg

Commands to Find Processes

ps

ps -a

ps -u

ps aux | grep firefox

ps -ef | grep name

pgrep

pgrep -lu root

pgrep -n

pgrep -o

pgrep -i sh

pidof

pidof -s sh

pidof -c sh

pidof -x sh

top

kill, killall, pkill

kill

ps -ef

killall

killall firefox

killall -l

pkill

pkill firefox

Process Signals

Sending Signals

ps -ef

kill -15 63

kill -TERM 63

killall -15 63

killall -TERM 63

pkill -15 63

pkill -TERM 63

Conclusion

About the Author

Notes

Thursday, November 9, 2023

Linux Log Parsing Instructor Guide


Logs are a critical aspect of a Linux system as they provide valuable information utilized for troubleshooting, performance analysis, security, and compliance. The concepts and examples presented here explore specific commonly utilized ways to parse logs, accompanied by practical and advanced command examples to demonstrate their usage in real-world scenarios.

The material will be useful to a system administrator, power user, end user or student looking to further their knowledge in this area.

The guide is meant to be utilized by an individual whom will be reviewing via demonstration format these core topics. After each example, the commands, parameters, and options are explained.

Contents
How to use and run commands
Common Linux System Logs
Awk
Cut
Diff
Grep
Sed
Sort
Uniq
Vimdiff
Wc

Tuesday, August 15, 2023

Linux Wildcard and Meta Characters Instructor Guide

https://www.amazon.com/dp/B0CFQ1S3L4/

In Linux, wildcards and meta-characters are invaluable tools for efficient file manipulation and pattern matching. The concepts and examples presented here explore specific commonly utilized wildcards and metacharacters, accompanied by practical and advanced command examples to demonstrate their usage in real-world scenarios. The material will be useful to a system administrator, power user, end user or student looking to further their knowledge in this area. 

The guide is meant to be utilized by an individual who will be reviewing via demonstration format these core topics.

Contents

Instructor or End User Set-up:

Create Example Files:

Common Wildcards:

Asterisk (*)

Question mark (?)

Square brackets ([])

Curly braces ({})

Tilde (~)

Backslash (\)

Exclamation mark (!)

Common Character Classes:

Asterisk (*)

Question Mark (?)

Range of Characters ([])

[characters]

[!characters]

[[:class:]]:

[[:alnum:]]

[[:alpha:]]

[[:digit:]]

[[:lower:]]

[[:upper:]]

Common Meta-Characters:

Pipe (|)

Greater than (>)

Double greater than (>>)

Less than (<)

Caret (^)

Dollar Sign ($)

Ampersand (&)

Semicolon (;)

Combining Wildcards and Meta-Characters

Conclusion:

About the Author:

Notes:

Thursday, March 9, 2023

Linux Quiz

https://www.amazon.com/dp/B0BXNRFPP6

The following Linux quiz is meant to be a fun way to sharpen one's Linux knowledge. The 110 questions are based upon real working aspects for those interested in Linux. Ideally the questions are those that a system administrator, power user and an end user or student looking to further their knowledge in this area will find useful. 

Contents:

Basic Simple Commands

Network Commands

Text Processing Commands

Monitoring Commands

Linux Architecture

Linux Commands & Definitions

Grep Commands

Sed Commands

Awk Commands

Basic Scripting

Tuesday, February 28, 2023

Linux Useful One Liner Commands Instructor Guide

https://www.amazon.com/dp/B0BX2MQ82B/

Linux is utilized within the world of information technology in a very broad manner. Therefore, the items presented here are useful one liner commands that encompass real world scenarios that are applicable to a system administrator, power user and an end user or student looking to further their knowledge in this area. 

The guide is meant to be utilized by an individual whom will be reviewing via demonstration format these useful one liner commands.

Table of Contents:

Display and List One-Liners

List Hidden Files And Directories First:

Displays Build of Distribution:

Display Disk Usage in Human Readable Format:

Display Only The Total Disk Usage (Summary) Of Current Directory:

Display Day Of The Year:

Display Lines From Head And Tail:

Press A Key To Continue:

Shows Size Of Files And Directories Sorted:

Count Files In Current Directory:

Monitoring And Using One-Liners

Most Used Commands:

Monitor CPU Speed:

View All Network Activity In Real Time:

View The TCP Connection Status By Group:

Monitoring Kernel Messages:

Total Disk Space Used In Current Directory And Root Directory:

Process Tree With Details:

Check CPU Architecture:

Services And Processes Related One-Liners

Get Running Services By Port Number:

Processes Per User Count:

File Related One-Liners

Find And Delete Specific Type Of Files:

Find All Files And Paths That Do Not Have .txt:

Find Latest Version Of Given File:

Find Files That Contain test, hello and txt:

Find Open Files:

Test Text Writing With Delay:

Vertical Text Display:

Create Sequence Of Numbers 1 To 15 In Perl:

Display Today’s Date:

Octal Dump Of A File:

Run Multiple Commands Against A File:

Match Characters In A String And Return The Matches In Groups Of Two Characters:

Match 10 Characters In A String:

Match Characters Between Brackets:

Search C File And Output Printf Statement:

Search C File And Output Printf And Return Statements:

Match String In C File That Starts With The (" and Ends With the "):

Sunday, January 15, 2023

Linux Dictionary A-Z

Linux Dictionary A-Z

https://www.amazon.com/dp/B0BSCZHTMH/

The world of Linux is complicated and intricate. Therefore, in order to understand and maneuver through this vast technology and business environments platform, knowing the proper terminology from A-Z will prove valuable. Each entry is explained with useful parameters, options and examples when relevant.

Friday, October 21, 2022

Linux Text Processing Commands

Linux Text Processing Commands

https://www.amazon.com/dp/B0BJZPZ49F/

The following are the core and key Linux text processing commands. Each command is described then a series of examples in regard to usage is shown. When applicable useful parameters are shown which can accompany the command.

Table of Contents:

How to use and run commands

awk

cat

cut

cmp

diff

egrep

emacs

grep

join

nano

ngrep

perl

sed

sort

tr

uniq

vi

chmod permissions

Wednesday, September 14, 2022

Linux Governance

https://www.amazon.com/dp/B0BF8PDRFP/

Linux governance in an organization helps to define what is and what is not allowed while working in the environment as well as serves as a model for how requests and projects should proceed. The following are several high-level aspects and ideas to be utilized as part of an organizations Linux governance.


Topics include:


Linux Organizational Model

Linux Ways to Work

Maintenance Request vs. Project

High-Level Project Aspects

Project Groundwork

Vision

Design

Implementation

Linux Product Manager

Linux Good Design

Linux Continuous Improvement

Linux Getting Items Done Review

Linux Version - Standard

Password Policies

Permission Policies

Desktop

Servers

Cloud

System Updates

Transfer Tools

Linux Backup and Restore Policies

Linux Growth Mindset

Linux Troubleshooting Policies

Friday, May 20, 2022

Linux Monitoring Tools

Linux Monitoring Tools

https://www.amazon.com/dp/B0B1TTFMNF/

The following are some core and key Linux monitoring tools to utilize in one’s environment. These commands can be used by Linux professionals, students, hobbyists, etc.

When applicable, useful examples of switches and parameters are depicted.

Contents:

free

htop

ip

iostat

lsof

mpstat

netstat

pmap

proc

ps

pstree

strace

tcpdump

ss

top

uptime

vmstat

Tuesday, January 11, 2022

25 Simple Linux Shell Scripts

 25 Simple Linux Shell Scripts

https://www.amazon.com/dp/B09Q2TLPTC/


The following are 25 simple Linux shell scripts that are key for scripting in Linux. The scripts can be utilized for personal, educational or corporate usage. Scripts are simply explained and include step by step instructions for how they can be run. Each script includes useful and common aspects which can be further built out if needed:

Contents:

Common Shells

1) Hello World Script

Writing Simple Shell Scripts

2) Date with WhoAmI Script

3) Date Calendar and Uptime Script

4) Cleanup Script

Simple String Manipulation

5) Simple Replace String Script

Simple Argument Output Scripts

6) Output Arguments

7) Welcome Function Arguments

Simple Text String Scripts

8) Script for Newline and Tabs

Simple Math Script

9) Simple Addition

Simple Case Statements

10) Basic Case Statement

Simple Return Value/String Function Scripts

11) Return Value Function

12) Return String Function

Simple Array Scripts

13) Return Array Values

14) Return Second Element of Array

15) Append Element to Array

16) Return Array Map

17) Remove Array Map Element

IF Statement Scripts

18) IF Conditional Numeric

19) IF Conditional for File

20) IF/Else Conditional for Shell

While Statement Script

21) Simple While Statement

For Loop Scripts

22) Simple For Loop Script

23) Simple For Loop Range Script

Directory Scripts

24) Get Directory

25) Get Files in Directory

Linux Command Line

Permissions

Wednesday, December 22, 2021

Linux System Simplified

Linux System Simplified

https://www.amazon.com/dp/B09P3DZQ95/

The Linux system is a complex operating system and therefore the material presented here breaks down and explains the core topics of the system in a simplified manner. Working examples when applicable are shown and explained. The material can be utilized for personal, educational or corporate usage.

Topics include:

Linux System Design

Linux Kernel

Transmission Control Protocol/Internet Protocol (TCP/IP) Architecture

Client Server Protocols

Linux Boot Process

Executing Commands

Linux Input and Output (I/O)

Linux Command Line

Linux File System

Linux ls Directories

Permissions

Reserved Characters in Linux

Create a File




Tuesday, October 12, 2021

50 End User Linux Commands

 50 End User Linux Commands

https://www.amazon.com/dp/B09J49L1BK/ 

The following are 50 end user commands that are key to utilize from the Linux command line. The commands can be utilized for personal, educational or corporate usage. Commands are simply explained with an example(s). Some commands include useful and common attributes and parameters for usage:

alias
cal
cat
cc
cd
chmod
chown
clear
cp
df
diff
du
echo
egrep
exit
find
free
grep
head
history
ifconfig
ip
jobs
kill
killall
less
ls
lsof
man
mkdir
mv
nano
ping
ps
pwd
rm
rmdir
sort
tail
top
touch
uname
unzip
uptime
useradd
vi
w
whereis
whoami
zip


Wednesday, August 18, 2021

50 Basic Linux Commands

50 Basic Linux Commands:


The following are 50 basic commands to utilize from the Linux command line. The commands can be utilized for personal, educational or corporate usage. Commands are simply explained with an example(s). Some commands include useful and common attributes and parameters for usage:

alias
awk
basename
bc
bind
cal
cat
cd
chmod
clear
cp
ctrl
date
df
du
dir
echo
find
free
halt
hostname
history
grep
ifconfig
iostat
ip route
kill
less
ls
lsof
info
man
mv
mkdir
ping
ps
pwd
rm
sed
service
shutdown
sort
stat
tail
top
touch
traceroute
tree
uname
uptime
wc
whereis

Thursday, August 27, 2020

50 Key Linux System and Network Administrative Commands

50 Key Linux System and Network Administrative Commands

https://www.amazon.com/dp/B08GSN8VY4/

The following are 50 key system and network administrative commands to utilize from the Linux command line. Commands are simply explained with an example(s). 

Some commands include useful and common attributes and parameters for usage:

ALT Keyboard Shortcuts

CAL

CAT

CHMOD

CTRL Keyboard Shortcuts

DATE

DF

DMESG

DU

ECHO

FIND

FOLD

GROUP COMMAND

FREE

GREP

HALT

HOSTNAME

IFCONFIG

IP ADDR

IP HELP

IP LINK SHOW

IP NEIGH SHOW

IP ROUTE GET

IPCALC

IOSTAT

LS

LSOF

LSPCI

MOUNT

MPSTAT

NETSTAT

NSLOOKUP

PING

PRINTENV

PS

PSTREE

ROUTE

SET

STAT

TCPDUMP

TEE

TOUCH

TOP

TREE

TTY

TRACEROUTE

UNAME

UPTIME

WC

WILDCARDS

Monday, June 1, 2020

Linux Core Tasks Instructor Guide

Linux Core Tasks Instructor Guide

https://www.amazon.com/dp/B089G8L194/

Linux is utilized within the world of information technology in a very broad manner. Therefore, the items presented here are core tasks that encompass real world scenarios that are applicable to a system administrator, power user and an end user or student looking to further their knowledge in this area. <br>The guide is meant to be utilized by an individual whom will be reviewing via demonstration format these core tasks. The commands are grouped by topic.

Contents include:
Instructor Set-up
Linux System Design
Transmission Control Protocol/Internet Protocol (TCP/IP) Architecture
Common Commands
LS Command
PS Command
CHMOD Command
Kill Command
DF Command
Memory Commands (Using Cat and Free)
Miscellaneous Commands
WC Command
CP Command
Cat Command
Find Command
ID Command
TR Command
System and Networking Commands
Disk Usage Command
LSPCI Command
TCPDUMP Command
Tree Command
Uname Command
Text Processing
GREP
AWK
SED
Common Shells
Shell Scripts
Date Calendar and Uptime Script
Cleanup Script

Sunday, March 15, 2020

Linux End User Instructor Guide + Tips & Tricks

Linux End User Instructor Guide + Tips & Tricks

http://www.amazon.com/dp/B085WLV45D/

Linux is an operating system based off of Unix. It is well respected and utilized for workstations, file servers and web servers. This guide covers aspects that an end user will find useful in their everyday tasks.
The guide is meant to be utilized by an individual whom will be reviewing via a demonstration format some core aspects as well as tips & tricks that a general user who will be using Linux – can utilize in order to save time. The guide can also be used by any individual interested in self-study learning some core and key aspects of Linux.
Contents:
Instructor Set-up
Linux System Design
Transmission Control Protocol/Internet Protocol (TCP/IP) Architecture
Client Server Protocols
Executing Commands
Edit a File
Basic Commands
Paths and Pathnames
File System Hierarchy
Pattern Matching
Find Commands
Grep
Common Shells
Writing Simple Shell Scripts
Date with WhoAmI Script
Date Calendar and Uptime Script
Hello World Script
Network Commands
Check Hardware Information
Core One Liners

Thursday, April 4, 2019

Linux IP and Netstats Commands


Some common ways to display core network items can be obtained by running these commands:

ip link show  - lists the network interfaces
ip addr show  - lists addresses for interfaces
ip route show - lists routing table
netstat -tupl - lists the Internet services on a system
netstat -tup  - lists the active connections to and from a system