≡ Menu

Unix C Shell ( csh / tcsh ) Tutorials

Tutorials, tips, tricks, and shell scripting techniques about Berkeley UNIX C shell and tcsh – an enhanced version of original csh ( rss feed ).

Unix: csh Shell Loop Example

Can you give me a simple loop example in csh shell in Linux or Unix like operating systems?
[click to continue…]

TCSH / CSH Shell Set PATH Variable

I am a new Unix / Linux / Apple OS X user. What is my path in CSH / TCSH shell? How do I set or modify path in c shell (CSH) on Unix like operating systems?
[click to continue…]

TCSH / CSH: set vs setenv Command Differences

I've recently started to use FreeBSD operating system with tcsh (c shell clone) shell. I noticed that both set and setenv command set shell user environment. What's the difference between the SET and SETENV commands?
[click to continue…]

Unix / Linux: TCSH / CSH Shell Set Variable

How do I set environment variables using c shell (tcsh or csh) under FreeBSD UNIX or Linux operating systems? How do I save variable using csh shell under Unix like operating systems?
[click to continue…]

Shell Script While Loop Examples

Can you provide me a while loop control flow statement shell script syntax and example that allows code to be executed repeatedly based on a given boolean condition?
[click to continue…]

Linux Disable Shell / FTP Access For a User Account

My users will only be checking mail, and I want to disable FTP access as well as shell access under CentOS Linux. How do I disable shell (SSH) and FTP access to a new or old user under Linux without deleting user account?
[click to continue…]

UNIX / Linux: Set your PATH Variable Using set or export Command

How do I add a new path to $PATH variable under Linux and UNIX like operating system? What is my path, and how do I set or modify it using csh/tcsh or bash/ksh/sh shell?
[click to continue…]

Linux / UNIX Recursively Search All Files For A String

How do I recursively search all text files for a string such as foo under UNIX / Linux / *BSD / Mac OS X shell prompt?
[click to continue…]

What is UNIX / Linux C Shell?

What is C shell under UNIX / Linux operating systems?
[click to continue…]