
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 the fundamentals of shell, including streams and redirection with standard input, output, and error, and learn bash and csh variable handling and setenv inheritance.
Participate in a quiz on C shell scripting that tests file creation symbols, the append operator, and Bash set command usage.
Redirect errors in the c shell using >& and >>&, since 2> is not supported. Explore tee for dual output and use semicolons, &&, and !! for command combinations.
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 c shell user customization by configuring system-wide and personal startup files to tailor environment settings using dot files like .cshrc, .login, and .logout.
Learn how to configure a user's shell by editing the .cshrc file in the home directory, set a login message, and verify it appears after logging in.
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.
discover in c shell scripting how the path variable and the which command let the shell find executables so you can run hello world from any directory.
Explore how to inspect environment variables in the c shell, identify the active shell, and view home and hostname related values through a demo of shell basics.
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.
Learn the alias command in csh scripting by creating shortcuts like ll for ls -l and vim for vi, and make p a pwd alias permanent in .cshrc.
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.
Explore using positional parameters in c shell scripting, accessing arguments as $1 to $9, and displaying values like apple and banana, while using $0 to show the script name.
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.
Participate in a quiz on C shell scripting, testing how to set variables, use echo, and address undefined variables across basic command scenarios.
Explore C shell scripting operators and their types, including arithmetic, relational, file testing, logical, and pattern matching, with plus plus, minus minus, and plus equal to looping examples.
Demonstrate the -f operator in C shell scripting by checking that a file exists and is a regular file, then create it with cat redirection and verify its content.
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.
Learn to work with integers using the test command and integer comparison operators. Evaluate whether 54 is greater than 64, note the false result, non-zero status, and or operator.
Practice a quiz on C shell scripting that tests arithmetic operations, string handling, and file executable checks.
Learn C shell scripting through a demo of the read operator, positional parameters, and the if-then-else flow to test readability and set correct permissions with chmod.
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.
Engage with a practical quiz on C shell scripting, testing scripts on a live system, and evaluating the use of an else statement in an if then else.
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.