Lab-3 (UNIX Programming)
Q:-1) Locate the ordinary files that have been created exactly ten days before and whose names begin with “cha” and copy them to the user directory. Q:-2) Display the names of all ordinary files from the current directory and all its content subdirectories whose names end in “ing” and which have been modified with in the last three days. Q:-3) Redirect the contents of ls-p to a file called dir. Give the command to redirect the output of a long listing of files and append it to the file dir. Q:-4) Revoke the execute and write permissions from the group and the user for those files whose names begin with “m” and which have been modified in the last two days. Q:-5) Move those files which begin with “t” and have been modified more than five days ago to the directory class. Q:-6) Change the modes of those files which begin with “s” in such a way that the owner has read and execute permission, the group has read and write permission and others only read permission. (Use octadecimal representation)