0% found this document useful (0 votes)
29 views2 pages

Home Work Linux

The document provides instructions for tasks involving directories and files in Linux. It has a student complete steps using commands like ls, pwd, mkdir, cd, cp, mv, rm, head, tail, grep, wc to list, create, copy, move, delete and inspect files and directories in the file system.

Uploaded by

jinane
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views2 pages

Home Work Linux

The document provides instructions for tasks involving directories and files in Linux. It has a student complete steps using commands like ls, pwd, mkdir, cd, cp, mv, rm, head, tail, grep, wc to list, create, copy, move, delete and inspect files and directories in the file system.

Uploaded by

jinane
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Student1:

Student2:

Homework about directories and files in Linux

Tasks: Open Your browser and connect to the Alpine-linux online terminal using the link
bellow and fill the gaps using the result of the last command. You could use the clear command
(or Ctrl+l) to clear the screen. https://bellard.org/jslinux/vm.html?url=alpine-x86.cfg
-------------------------------------------------------------------------------------------------------------------
localhost:~# ls

localhost:~# pwd

localhost:~# mkdir master


localhost:~# ls

localhost:~# cd master
localhost:~/master# pwd

localhost:~/master# ls

localhost:~/master# ls -a

localhost:~/master# cd .
localhost:~# mkdir codes
localhost:~# ls

localhost:~/master# cd ..
localhost:~# pwd

localhost:~# cp hello.c hello1.c


localhost:~# ls

localhost:~# mv hello1.c master/codes


localhost:~# ls

localhost:~# cp bench.py master/codes/ bench1.py


localhost:~# ls master/codes

localhost:~# cat hello.js > master/codes/hello1.js
localhost:~# cat  master/codes/hello1.js

localhost:~# rm hello.c bench.py hello.js


localhost:~# ls

localhost:~# ls master/codes/

localhost:~# head -1 readme.txt

localhost:~# tail -1 readme.txt

localhost:~# grep tcc readme.txt

localhost:~# wc -l readme.txt

localhost:~# wc -w master/codes/hello1.c

localhost:~# cp master/codes/* .

localhost:~# ls

localhost:/# rmdir /root/master/

# If an error was given by the last command, write the command that will do the desired task:

You might also like