Unix File system Commands: Directories

Now that the UNIX tree-structured file system has been introduced, it would be useful to know how to find our way through the system and how to create files, delete them and rename them. cd: Change Directory To move from one directory to another the cd command is used. Use as: cd [directory] directory may … Read more

shell embedding and options

shell embedding Shells can be embedded on the command line, or in other words, the command line scan can spawn new processes containing a fork of the current shell. You can use variables to prove that new shells are created. In the screenshot below, the variable $var1 only exists in the (temporary) sub shell. You … Read more

shell variables

In this post we learn to manage environment variables in the shell. These variables are often needed by applications. $ dollar sign Another important character interpreted by the shell is the dollar sign $. The shell will look for an environment variable named like the string following the dollar sign and replace it with the … Read more