≡ Menu

environment variables

Unix / Linux: Maximum Character Length of Arguments In a Shell Command

What is the maximum character length of arguments in a shell command? How do I find out the maximum length of arguments for a new process under Linux or Unix like operating systems?
[click to continue…]

Linux / Unix Shell: Set Default Printer

How do I set default printer in my Bash shell under CentOS Linux or FreeBSD unix desktop operating systems?
[click to continue…]

Linux: Set Environment Variable

Bash shell is used for various purposes under Linux. How do I customize the shell environment variable under Linux operating systems?
[click to continue…]

Explains: echo Command (echo $”string”) Double-quoted String Preceded By a Dollar Sign

I noticed that many shell scripts in /etc/init.d/ directory use the following syntax:

echo $“Usage $prog start|stop|reload|restart”

Why a double-quoted string preceded by a dollar sign ($”string”) using the echo command under Linux / UNIX bash scripts?
[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…]

UNIX: Set Environment Variable

How do I set environment variables on UNIX systems?
[click to continue…]

FreeBSD csh / tcsh: Export Shell Variable

Q. I’m using FreeBSD 7 with csh (tcsh) shell. How do I export shell variable under FreeBSD operating systems?
[click to continue…]

How To Find and Overcome Shell Command Line Length Limitations

While using mv or rm command I get command line length error (Argument list too long error). How do I find out current running shell command line length limitations? How do I overcomes these limitations while writing UNIX / BSD / Linux shell utilities?
[click to continue…]

FreeBSD Display Environment Settings

Q. How do I display shell environment settings under FreeBSD operating systems?
[click to continue…]

How To Read / Print $PATH Shell Variable

Q. I’m new to Unix / Linux and I’d like to print current values of $PATH variable. How do I read $PATH from a shell prompt?
[click to continue…]