
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 a quick quiz on C shell scripting that tests identifying the shell variable, checking variable values with echo, and the correct command to add a system user.
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.
Redirect the output of Linux commands to a file using the > symbol, and compare shell variables with environment variables in csh, noting inheritance in child shells.
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).
Demonstrates how the and operator requires a successful first command for the second to run, then uses || to run the second when the first fails in c shell scripting.
Engage in a practical quiz on Linux commands, piping outputs with tee, command sequencing symbols, and C shell redirection using >& to reinforce core scripting concepts.
Discover quoting, backslash escaping, and command substitution in the C shell essentials part 2. See how single quotes forbid expansion, while double quotes allow it and preserve whitespace.
Explore how single quotes versus double quotes affect variable expansion in C shell scripting, showing that double quotes expand variables while single quotes preserve them literally.
Explores command substitution in C shell scripting by capturing a Linux command's output into a variable using backticks and displaying it with echo.
Discover how to escape characters in the C shell using the backslash to neutralize special meanings, making symbols like the greater-than sign literal in Linux.
Tackle a quiz on c shell scripting basics, exploring command output, question mark behavior, quoting rules, and true/false checks on double and single quotes.
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.
Demonstrates configuring a system-wide csh.cshrc file to set the http_proxy variable for all users at login. Specifies the proxy server IP 192.67.9.0.3 to route internet traffic through the proxy.
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 system wide and personal customization files in C shell scripting, identifying likely directories for user-specific settings, and learn the command to display hidden files.
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.
modify the path variable to let the shell locate an executable named hello world, add the directory to path, and verify by running hello from anywhere.
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.
Explore advanced shell fundamentals by mastering echo and exit commands, alias creation, and using ls error handling, plus evaluating exit status with $?, and consulting manual pages.
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.
Answer quiz questions on C shell scripting by predicting command outputs, such as ls and date, and evaluating the correctness of the given outputs.
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.
Learn how shell operators work on files and directories using the test command. Explore the -d operator for directory existence and exit status via $? in Linux.
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.
Explore beginning c shell scripting with if then else decision making, operators, file readability checks, and pattern matching to evaluate two expressions as zero or non-zero and conditionally execute commands.
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.