Computer Networking Lab 1 - FAST NUCES
Computer Networking Lab 1 - FAST NUCES
17F - 8090
Note: due to issues in my personal laptop, I had to borrow laptop from my friend. That’s why
you would see his name at the title bar in screenshots instead of mine. You can compare the
outputs, they are totally free of plagiarism.
Task 1:
Task 2:
- Cd
Stays in the same directory.
- Pwd
Prints current working directory
- ls –al
list the current directory
- cd .
jumps to parent directory.
- pwd
Prints working directory
- cd ..
goes to previous directory.
- Pwd
Prints working directory
- ls –al
list the contents of current directory.
- cd..
goes back to previous directory
- pwd
Prints working directory
- ls –al
lists the contents of current directory
- cd ..
goes to previous directory
- pwd
Prints working directory
- cd /etc
- ls –al | more
lists the contents of directory but with more details
- cat passwd
- cd –
goes back to root directory
- pwd
Prints working directory
Task 3:
Answer 1:
By using command ‘cd’ I jump into different directories and view the list of all available
directories in that specific directory by ‘ls’ command.
Current directory is printed by using ‘pwd’ command and I use ‘cat’ command to look into the
contents of a specific folder.
Answer 2:
Bluetooth and other ports are open, but no devices are connected right now.
Tty device is “ttys000”. Owner of my tty is my current user ‘ahmadirfanx’.
Answer 3:
Yes I can see that it doesn't have actual files, rather it has virtual entries that the
filesystem itself makes up on the spot.
Answer 4:
Answer 5:
Answer 6:
Answer 7:
Answer 8:
Answer 9:
Answer 10:
Answer 9:
Answer 10: