
Explore Linux command line essentials, from open source platforms and syntax to file management, editors like Vim and Gvim, and search commands such as grep and arc, across 19 lectures.
Learn Linux, the open source kernel behind many distributions, renowned for security, stability, and customizability, free to use and modify with a command line interface and GUI options.
Explore open source platforms to run linux commands, freely available and downloadable online, including debian, red hat, arch linux, ubuntu, centos, virtualbox, and apache, to match your application.
Master the typical Linux command syntax, including the general command form, options, and arguments. See ls with -l and a path like /home/user/documents to illustrate input and options.
Explore the linux command prompt, an interface to the operating system, identify user, hostname, tilde, and dollar or hash symbols, and view the present working directory with pwd.
Install ubuntu on windows using an administrator command prompt and a simple restart. Explore linux basics with commands like who and ls, view man options, and run sudo apt update.
Explore open-source Linux text editors like vim, gvim, vim-gtk3, Emacs, nedit, and gedit, and learn how to install them with apt-get for editing files and directory structures.
Discover GVim, the graphical version of Vim, and master its features, including syntax highlighting, regular expressions, multiple buffers, tabs, windows, and visual mode. Learn undo/redo, macros, session management, clipboard integration.
Learn how to create and configure the ~/.vimrc (dot vimrc) with set commands for font, font size, line numbers, indentation, and syntax highlighting, then source the vimrc to apply changes.
Master GVim basics: navigation, text manipulation, search and replace, and visual modes to boost productivity, including saving, exiting, and split window workflows.
Explore managing files and directories on the Linux command line with cd, ls, pwd, mkdir, rm, cp, mv, find, locate, and tree, including long listing and hidden files.
Learn to view file contents without opening them using cat, less, more, head, tail, and nl, then search with grep and awk and navigate with arrows and forward slash.
Learn to view information inside files using awk, extracting student names with marks greater than 80 from a two-field file, by printing $1 when $2 > 80 in grid.txt.
Compare two files using diff, vim diff, cmp, and tk diff to view line-by-line, byte-by-byte, or visually side-by-side differences, aiding test logs and regressions.
Learn to manage Linux processes using ps, top, ps tree, pgrep, pkill, and kill, plus job control with bg and fg, and scheduling with at, batch, crontab, and service.
Learn Linux file permissions with chmod, chown, and chgrp; set default umask and ACL entries, and use ls, stat, and sudo for secure project files.
Explore a comprehensive set of Linux search commands, including find, locate, grep, egrep, fgrep, The Silver Searcher, and ripgrep, to locate files, patterns, and command locations.
Learn to use the grep command to search text in files and directories with options, patterns, and regular expressions, including recursive search, case-insensitive matching, and colorized output.
Explore awk for advanced text processing, mastering begin and end blocks, pattern actions, and field separators with -F, plus built-in variables and functions for data tasks.
Recaps linux basics, open source platforms, command syntax, vim and vimrc customization, file management, viewing without opening, diff, permissions, and grep and awk for search.
You will learn from Linux commands in-line approach:
1. Basic File and Directory Management
2. File Permissions and Ownership
3. Text Processing
4. System Monitoring and Management
5. Networking
6. Package Management
7. Scripting and Automation
8. User and Group Management
9. Disk Management
10. System Configuration and Maintenance
11. Security and Permissions
12. Boot and Startup Management
13. Backup and Recovery
14. Version Control
15. Virtualization and Containers
`grep` Command:
1. Basic Text Searching
- Simple Search: Use `grep` to search for specific patterns within files.
- Case-Insensitive Search: Use the `-i` option to perform case-insensitive searches.
2. Pattern Matching
- Regular Expressions: Utilize regular expressions for more complex pattern matching.
- Whole Word Matching: Use the `-w` option to match whole words.
3. Search Across Multiple Files
- Recursive Search: Use the `-r` or `-R` option to search directories recursively.
- Multiple Files: Search through multiple files simultaneously.
4. Displaying Context
- Line Numbers: Use the `-n` option to show line numbers of matching lines.
- Context Lines: Use the `-C`, `-A`, and `-B` options to display lines of context around matching lines.
5. Inverting Matches
- Invert Match: Use the `-v` option to display lines that do not match the pattern.
6. File Name Display
- Show File Names: Use the `-l` option to list the names of files containing matches.
7. Counting Matches
- Count Matches: Use the `-c` option to count the number of matching lines.
`awk` Command
1. Basic Text Processing
- Print Specific Fields: Extract and print specific fields from lines of text.
- Field Separator: Use `-F` to specify different field separators.
2. Pattern Matching and Action
- Conditional Patterns: Perform actions based on specific patterns.
- Built-in Variables: Use variables like `NR` (record number) and `NF` (number of fields).
3. Text Manipulation
- String Operations: Perform operations like concatenation, substrings, and length calculations.
- Arithmetic Operations: Perform arithmetic calculations on numeric data.
4. Data Transformation
- Format Output: Format and print output in a structured manner.
- Reorder Fields: Rearrange fields in the output.
5. Complex Data Processing
- Multi-Line Records: Handle multi-line records with custom record separators.
- Advanced Patterns: Use more complex pattern matching and processing rules.
6. Scripting with `awk`
- Embedded Scripts: Write `awk` programs within shell scripts for more complex processing.
- User-Defined Functions: Create and use functions within `awk` scripts.
7. Field and Record Manipulation
- Modify Fields: Modify the contents of fields in each record.
- Output Redirection: Redirect output to files or other commands