If you can see this check that

  • Javascript is enabled

Directories

Creating and using directories.

To reset all the check buttons from a previous attempt click here

Question 1 Update alice files

If you have just completed all the previous tutorials you need not use this setup button. However, if you have skipped part or all of the previous tutorial questions, or when you ran your virtual machine the tutorial files were missing, then the button below will recreate the files which the previous tutorials would have had you create. If you destroy one of the tutorial files you can always press the button again to get them recreated.

Tests: Ready
 
Regenerate tutorial files UNTESTED

Question 2 Create a directory structure

In the alice account home directory create the directory structure shown:

                   
                            |
           -----------------+--------------
           |                |             |
         work            letters        scripts
           |
   --------+---------
   |       |        |
  progs  tutorial  misc

The top directory of the structure (alice) corresponds to /home/alice, your HOME directory and therefore the directory you start in when you log into your machine using the alice username. You DO NOT create a "alice" directory yourself to answer this question, as it already exists are you are already it in.

Tests: Ready
 
Create directories UNTESTED

Question 3 cp

Copy the files /etc/group and /etc/vimrc into your misc directory.

Tests: Ready
 
copy files UNTESTED

Question 4 Relative move

Tests: Ready
 
vimrc has moved UNTESTED

Question 5 rename

While still in the misc directory using a relative path name, copy the file 'bigfile' from your home directory to the tutorial directory and rename it 'bigfile2'.

Tests: Ready
 
bigfile2 exists UNTESTED

Question 6 cp

Make the directory work your current directory and using an absolute path name, copy the file 'bigfile2' in the tutorial directory to the scripts directory.

Tests: Ready
 
scripts/bigfile2 exists UNTESTED

Question 7 tilde

If you put the tilde character in front of a username, then the system will consider this the name of a directory which is that user's home directory. For instance, we may use ~root for the home directory of the user root. Use cd with a tilda string and pwd to find the home directory of the user mysql

Home directory of mysql:

Tests: Ready
 
mysql home UNTESTED

Question 8 case and space

We can have spaces in our file and directory names (like Windows). File names and directory names are case sensitive (unlike Windows). Create directories with the following names in your home directories, use ls to check they are there.

Tests: Ready
 
Crummy directory names UNTESTED
Directories and not files UNTESTED
My and Documents do not exist. UNTESTED

Centos 7 introPaths | BasicShell | Search
Centos 7 tutorials:intro1 | intro2 | wildcard | permission | pipe | vi | essential | admin | net | SELinux1 | SELinux2 | fwall | DNS | diag | Apache1 | Apache2 | log | Mail
Alma 10 introPaths | BasicShell | Search
Alma 10 tutorials:intro1 | intro2 | wildcard | permission | pipe | vi | essential | admin | net | SELinux1 | SELinux2 | fwall | DNS | diag | Apache1 | Apache2 | log | Mail
Caine 10.0Essentials | Basic | Search | Acquisition | SysIntro | grep | MBR | GPT | FAT | NTFS | FRMeta | FRTools | Browser | Mock Exam
Caine 13.0Essentials | Basic | Search | Acquisition | SysIntro | grep | MBR | GPT | FAT | NTFS | FRMeta | FRTools | Browser | Registry | Mock Exam
Kali 2020-41a | 1b | 1c | 2 | 3 | 4a | 4b | 5 | 6 | 7 | 8a | 8b | 9 | 10
Kali 2024-41a | 1b | 1c | 2 | 3 | 4a | 4b | 5 | 6 | 7 | 8a | 8b | 9 | 10
UsefulPrivacy Policy | Terms and Conditions

Linuxzoo created by Gordon Russell.
@ Copyright 2004-2026 Edinburgh Napier University