Wednesday, November 30, 2022

Linux - AC

The following is a Linux dictionary word of the day:

ac – command that displays how long users have been connected to the system.

-d parameter stands for day.
-y parameter stands for year.

Example: ac -d -y


Monday, November 28, 2022

Linux - Absolute Pathname

The following is a Linux dictionary word of the day:

absolute pathname – a pathname that identifies all directories from the root directory to an individual file.

Example: /usr/local/bin/name_of_file

Sunday, November 27, 2022

Linux - A2P

The following is a Linux dictionary word of the day:

a2p – utility that takes an awk script and produces it outputted as a Perl script.

Example: a2p name_of_file

Saturday, November 26, 2022

Linux Text Processing Commands


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

Linux Governance


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

Linux Monitoring Tools


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

25 Simple Linux Shell Scripts


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