In this chapter we learn to manage environment variables in the shell. These
variables are often needed by applications.
$ dollar sign
All PS1 Options in bash:
practice: shell variables
cut d: -f1 /etc/passwd | column
Softlink example: ln s existing_file_name link_file_name
1. As normal user, create a directory ~/permissions. Create a file owned by
yourself in there.
2. Copy a file owned by root from /etc/ to your perm
New Introduction to vi, vim
1. Start the vimtutor and do some or all of the exercises. Type in vimtutor.
2. What 3 key sequence in command mode will duplicate the current line.
3. What 3 key sequence in command mode will switch two lines' place
Shells like csh,bash and Korn have support for programming constructs that
can be saved as scripts. These scripts in turn then become more shell
commands. Many Linux commands are scripts. User profile scripts are run
when a user logs on. Some daemon progr
working with directories
This module is a brief overview of the most common commands to work with directories:
pwd, ed, ls, mkdir and rmdir. These commands are available on any Linux (or Unix)
This module also discusses absolute and relative paths
working with les
In this chapter we learn how to recognise, ereate, remove, copy and move les using
commands like file, touch, rm, op, mv and rename.
all files are case sensitive
Files on Linux (or any Unix) are ease sensitive This means that FILE] is dif
working with le contents
In this chapter we 1will look at the contents of text les with head, tail, eat, tat, more, less
We will also get a glimpse of the possibilities of tools like at on the command line.
You can use head to display th
This chapter will explain the use of man pages (also called manual pages) on your Unix
or Linux computer.
You will learn the man command together with related commands like wherein, whatis
Most Unix les and commands have pretty good m