Lab1_Basic-Commands (1)
Lab1_Basic-Commands (1)
Objectives :
Required Work :
A. Basic commands
Remember:
mkdir repx: create repx directory
cd repx: go to repx directory
ls repx: list the contents of the repx directory
cp file1 dest: copy the file file1 to dest
cp -r repx repy: make a copy of the repx directory called repy
mv fich3 fich4: rename the file fich3 to fich4
1
Operating System Administration : UNIX
Note: Each question must be answered with a single command line and the current
directory must always be your home directory
5. Let the above tree structure. From your home directory, we want to create this tree structure. To
do this:
a. Create two directories « Unix » and « Python » in your home directory.
b. Create two directories « Lab1 » et « Lab2 » in « Unix».
c. Copy the directories « Lab1 » and « Lab2 » in « Python».
d. Create two directories « Session1 » and « Session2 » in « Unix /Lab1».
e. Create two files « ex1 » and « ex2 » in the directory « Session1 ».
f. Copy the files «ex1» and «ex2» in «Python /Lab2» with the new names «.ex1» and « .ex2»
B. man pages
Open a 2nd terminal and display the man page of ls. Find in the manual pages the option or
options that are appropriate for the following exercises.
Message from Linus Torvalds to comp.os.minix (August 1991) announcing his project:
Hello everybody out there using minix -
I’m doing a (free) operating system (just a hobby, won’t be big and professional like gnu) for
386(486) AT clones. This has been brewing since April, and is starting to get ready. I’d like any
feedback on things people like/dislike in minix, as my OS resembles it somewhat (same
physical layout of the file-system (due to practical reasons) among other things).
2
I've currently ported bash(1.08) and gcc(1.40), and things seem to work. This implies that I'll
get something practical within a few months, and I'd like to know what features most people
would want. Any suggestions are welcome, but I won't promise I'll implement them :-)
Linus ([email protected])
PS. Yes - it's free of any minix code, and it has a multi-threaded fs. It is NOT portable (uses
386task switching etc), and it probably never will support anything other than AT-harddisks,
as that's all I have:-(.
Linus Torvalds
5. Display the contents of your file OS.txt on the terminal.
6. Display only the first 3 lines of the file OS.txt on the terminal.
7. Display only the last 3 lines of the file OS.txt on the terminal.
8. Create a second directory under /home/your_name called Doc
9. Move the file OS.txt to Doc and rename it SE.txt
10. Delete the directory Practical with confirmation request before permanent deletion.