sed, awk, vmstat netstat and mail commands

Shell Scripting Tutorial-19 sed, awk, vmstat, netstat and mail commads explained.

sed command is a stream editor used for modifying the files in unix (or linux). Whenever you want to make changed to the file automatically, sed comes in handy to do this.

Awk command / tool is used to manipulate text rows and columns in a file. Awk has built in string functions and associative arrays. Awk supports most of the operators, conditional blocks and available in C language.

vmstat is a tool that reports data about your machine’s processor,free memory,swap,io and cpu resource utilisation in real time.

netstat command is used to list out LISTENING ports, Established connections.

mail utility is used to send an script out. 

Follow US on Social Media:
http://bit.ly/24hAPal
https://facebook.com/Linuxarkit/
https://twitter.com/aravikumar48
https://www.tumblr.com/blog/aravikumar48
https://vk.com/techtutorials
https://www.linkedin.com/company/arki...
http://bit.ly/LearnS

Unix Shell Scripting Complete Video Tutorial Which Helps you to write advanced scripts Just Free

Shell Scripting Video Tutorials

UNIX SHELL SCRIPTING Video Tutorial, Each Link will has one Video Follow the Links one by one any complete your Shell Scripting Training without spending Single Rupee from your pocket. 

Awesome Right, We also appreciate if you can provide us the suggestions, improvements and complaints by commenting to this article. 

All Videos in Single Click

Complete Shell Scripting Content Video




BASICS OF UNIX

SHELL SCRIPTING BASICS

  • What is shell scripting?
  • Why to write shell script?
  • How to write shell scripts?
  • Meta data in shell scripts
  • Code in shell scripting
  • Executing shell script
  • Debugging shell scripts

BASH SHELL ABILITIES

COMMANDS

CONTROL/CONDITIONAL STATEMENTS

  • test command
  • eval command
  • expr command
  • $(( ))
  • &&, || AND - OR Operators
  • Assignment, Arithmetic, Bitwise, Logical operators
  • Numerical, string, file tests
  • If statements
  • If else Statements
  • For loop
  • While loop
  • Untill loop
  • Case statement
  • Break, sleep, continue, exit
  • Functions

Thanks for the Read, Please do remember to comment your feedback.

Complete RHCSA and RHCE Course Content

RHCSA Certification and RHCE Certification Complete Guide

S. NoTopic DescriptionCourse Name
1Introduction to course outline and certificationRHCSA
2Linux ArchitectureRHCSA
3Linux Vs WindowsRHCSA
4Linux Directory StructureRHCSA
5Installing VMWare work StationRHCSA
6Configuring virtual Network communicationRHCSA
7Installing Linux Operating system using Installation media (DVD)RHCSA
8Installing and configuring Lab Main Server / DNS / LDAP / Kerberos, Certificate Authority and 389 Directory ServerRHCSA
9Bash shell featuresRHCSA
10Managing files & directoriesRHCSA
11Basic Commands ls, cp, mkdir, cat, rm and rmdirRHCSA
12Getting help from using command line (whatis, whereis, man, help, info, –help and pinfo)RHCSA
13Editing Viewing of text files using nanoRHCSA
14Linux Directory StructureRHCSA
15Using visual editor & visual editor modified to edit filesRHCSA
16User Administration Creating, Modifying and DeletingRHCSA
17Controlling services & daemonsRHCSA
18IPv4 NetworkingRHCSA
19Installing and configuring SSH Server & ClientRHCSA
20Listing and managing processesRHCSA
21Prioritize processRHCSA
22Analyze & storing logsRHCSA
23Syslog Server & Client configurationRHCSA
24Compressing files & directories (tar and zip)RHCSA
25Copying files & directories to remote serversRHCSA
26Red Hat Package ManagerRHCSA
27Installing and configuring Local Yellodog Updater, ModifiedRHCSA
28Installing and configuring FTP / HTTP Yellowdog Updater, ModifiedRHCSA
29Managing network interfaces using nmcli utilityRHCSA
30Searching files and directoriesRHCSA
31File & Directory links (Soft Links and Hard Links)RHCSA
32Managing of physical storage – Creating Standard PartitionsRHCSA
33Creating and Managing Logical Volume ManagerRHCSA
34XFS quota managementRHCSA
35Access Control List (ACL)RHCSA
36Scheduling of future Linux tasks using at & CrontabRHCSA
37SeLinux OverviewRHCSA
38SeLinux Policy types, Listing policies and applying policiesRHCSA
39NFS Server and Client configurationRHCSA
40Firewalld – configuring and managing rulesRHCSA
41Securing the NFS using kerberosRHCSA
42Adding server as LDAP clientRHCSA
43Setting up LDAP users home directoryRHCSA
44Accessing the network storage using (CIFS) sambaRHCSA
45Samba Multi-user AccessRHCE
46Using Virtualized systemsRHCE
47Creating virtual MachinesRHCE
48Automated installation of Redhat LinuxRHCE
49Automated Installation using KickstartRHCE
50Explaining Linux booting processRHCE
51Recovering forgotten root passwordRHCE
52Recovering forgotten root password method-2RHCE
53Fixing Partition Errors – using emergency modeRHCE
54Managing daemons and servicesRHCE
55MariaDB Installation and ConfigurationRHCE
56Using regular expressions with grepRHCE
57Installation & configuration of DHCP Server – reserving IP addressRHCE
58DNS master server zones installation & configurationRHCE
59Installing and Configuring the Web / Httpd/ Apache ServerRHCE
60Configuring virtual web serverRHCE
61Making secure web server (https) ssl enabled web serverRHCE
62WSGI script enabled web serverRHCE
63Networking IPv6 assigning IPv6 AddressRHCE
64Time synchronising using NTP server and clientRHCE
65Configure a system to forward all email to a central mail serverRHCE
66Install and configure MariaDBRHCE
67Backup and restore a databaseRHCE
68Create a simple database schemaRHCE
69Perform simple SQL queries against a databaseRHCE
70Configure a system as either an iSCSI target or initiator that persistently mounts an iSCSI targetRHCE
71Use network teaming or bonding to configure aggregated network links between two Red Hat Enterprise Linux systemsRHCE