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

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 "):

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, 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

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