Preparing the file structure
Let's look at the basic terminal commands. Let's say we have the following file structure created for this:
- /xxx/
- /aaa/
- dddd.txt
- eeee.txt
- /zzz/
- /bbb/
- cccc.txt
- ffff.txt
- /kkk/
- /yyy/
- /aaa/
Let the terminal be opened on the folder xxx
. In the code examples, I will specify the working directory above the code along with the terminal commands:
your command
On your command line, the current working directory will most likely be listed before your commands and followed by a dollar sign:
xxx$ your command
Manually create a folder test
somewhere, and in it - a folder dir
and a file file.txt
. Place some files and folders in the subfolder.
Run command prompt in test
folder.