
Explore the Linux C shell environment, its history, and install csh, including creating a user defaulting to csh, to start scripting.
Check the value of the SHELL variable to reveal /bin/bash, then install csh on Centos and create a user with csh as the default shell using -d and -s.
Explore how the C shell handles the standard error stream by redirecting errors with >&, see ls -l on a non-existent file, and learn command combination with semicolons (date; uptime).
Explores command substitution in C shell scripting by capturing a Linux command's output into a variable using backticks and displaying it with echo.
Explore environment variables and PATH in c shell, distinguish uppercase exportable variables from lowercase ones, verify values with the which command, and modify PATH with set to include bin directories.
Explore basic c shell scripting concepts through a quiz on host name commands, shell identification, echo outputs, and true/false questions about who am I.
Demonstrates the exit command in C shell, showing that zero signals success while non-zero signals failure, and explains checking the last command's status with special variables $? and $status.
Learn advanced shell fundamentals by reading input from the command line with $<, using variables, and applying positional parameters $1, $2, $3 to display file contents via a reusable script.
Learn to read input from the command line in a csh script using $<, write and make it executable, then run from the current directory to echo your age.
Demonstrate using the -e test to check file existence, conditionally set a user environment variable when a log file exists, and use the or operator for the nonexistence case.
Learn how the not operator (exclamation mark) negates test conditions in C shell scripting, affecting exit statuses and file permission checks.
Explore pattern matching with positional parameters in this demo for Learn C shell scripting, showing the script runs only when you type hello after group name on the command prompt.
Use Linux commands in a C shell if-then-else to detect your machine’s architecture (32- or 64-bit) and print the result with echo, avoiding text manipulation.
2023 Update: You get to have access to my latest book on TCSH shell.
Please note that I have added another book called "Learn C shell Scripting in 5 days" on 10th April 2020. This book helps you learn the invaluable and extremely useful C shell fundamentals and scripting quickly.
Learn something new. Learn C shell scripting and you will discover a path much easier to traverse. There are many excellent BASH shell scripting resources, but the huge content is overwhelming to new students, system administrators and general learners trying to automate their processes. This course goes in detail but in a manner that is gentle. You will find it easy to build upon the knowledge gained after going through the course. For instance, variables and operators are nearly the same in BASH shell. It is also a myth that BASH shell is used more than the C shell, engineering firms noted for accuracy in this work use the C shell. Why would such verticals use the C shell? Because it is much easier to learn. This course is based on my book “Learn C Shell Scripting Gently”. The book, however, goes in-depth and is attached to the course free of cost. I would request you to avail of this opportunity and read the book, it would be beneficial for you. The course and the book go in tandem to give you sustained and usable knowledge based on my experience of nearly 25 years. I hope you enjoy the journey.