eenvoudige bestandsmanipulaties

Try to find out what task is performed by the following Unix commands:

Reference Manual

Use the man command to read the documentation of a Unix command. The name of the Unix command must be passed as an argument to the man command.

$ man who     # documention of the who command
$ man man     # documention of the man commando itself

Press enter to move forward one line in the documentation or use the up and down arrow keys to move backward and forward through the documentation line by line. Use the space bar to move forward one page in the documentation or use the pgUp and PgDn keys to move backward and forward through the documentation page by page. Press the q (quit) key to exit the display of the documentation.

Assignment

Each of the following tasks can be performed by at least one of the above commands:

  1. create three empty files named a.txt, b.txt and c.txt

  2. list all files in the current directory to check if the current directory contains three empty files named a.txt, b.txt and c.txt (see previous task); hidden files1 in the current directory may not be listed

  3. list all files in the current directory, including the time the files were last modified; the files should be listed alphabetically by name

  4. remove file c.txt

  5. rename file b.txt into file c.txt

  6. copy file a.txt to file b.txt

Submit a Unix command that performs each of the above tasks.