Assignment Help

  1. List commands

to create the directory hierarchy $HOME/a/b/c
in vi to replace all occurences of TMP with tmp in lines 1 through 10
in vi to replace first occurence of CPU_file with DISK_file at line 15

  1. Explain with a very simple example, usage of "ls -a"

  2. What do the following commands do

a. ls -ls / > /tmp/ls_list
b. more /etc/passwd > /tmp/opl
c. find $HOME -type f > $HOME/files_list
d. find /tmp > /tmp/abc

  1. Evaluate

$ FILE=pwd
$ echo $FILE --> What will this print ?

$ FILE=$HOME
$ cd $HOME/project --> what does this do ?

  1. chmod command has an option -R. What is its purpose,
    Explain with an example. (create needed files etc. in your homedirectory
    to explain this)

Help me :slight_smile:

These are pretty simple do-it-and-find-out-for-yourself type questions. What have you tried so far?

Start by posting correctly here, that means following the forum rules and fill in the required form/template found here:

Thread closed...