<<

CS 475: HW #1, Due Date: Wednesday March. 17, 2021 1. [5 Points] Follow the instructions given during the class to the WSL (Ubuntu) or the VirtualBox and the Ubuntu VM. o Explain the process that you have followed to install the one that you have chosen o Show screenshots from your system 2. [10 Points] Practice using the following commands on the terminal. o – directory listing o ls -al – formatted listing with hidden files o - change directory to dir o cd – change to home o – show current directory o dir – create a directory o dir – delete file o rm -r dir – delete directory dir o rm -f file – force remove file o rm -rf dir – force remove directory dir * o file1 file2 – file1 to file2 o cp -r dir1 dir2 – copy dir1 to dir2; create dir2 if it doesn't exist o file1 file2 – rename or file1 to file2 if file2 is an existing directory, moves file1 into directory file2 o -s file – create symbolic link link to file file – create or update file o > file – places standard input into file o file – output the contents of file o file – output the first 10 lines of file o file – output the last 10 lines of file o date – show the current date and o – show this month's calendar o uptime – show current uptime o – display is online o – who you are logged in as o -a – show kernel information o cat /proc/cpuinfo – cpu information o cat /proc/meminfo – memory information o man command – show the manual for command o – show disk usage o – show directory space usage o free – show memory and swap usage o whereis app – show possible locations of app o app – show which app will be run by default o octal file – change the permissions of file to octal, which can be found separately for user, group, and world by adding: ● 4 – read (r) ● 2 – (w) ● 1 – execute (x) Examples: chmod 777 – read, write, execute for all chmod 755 – rwx for owner, rx for group and world For more options, see man chmod. o pattern files – search for pattern in files o grep -r pattern dir – search recursively for pattern in dir o command | grep pattern – search for pattern in the output of command o Ctrl+C – halts the current command o Ctrl+Z – stops the current command, resume with fg in the foreground or bg in the background o Ctrl+D – log out of current session, similar to o Ctrl+W – erases one word in the current line o Ctrl+U – erases the whole line o Ctrl+R – to bring up a recent command o !! - repeats the last command CS 475: HW #1, Due Date: Wednesday March. 17, 2021 o exit – log out of current session

3. [5 Points] sure that these tools and languages are installed, report their versions from your system and show some screenshots.

o Install the gcc compiler, report the installed version and how you have checked this version o Install java runtime system and the javac compailer, report the installed version and how you have checked this version o Install python 3 (not python 3) report the installed version and how you have checked this version o Install the make command is working and report the version

What to submit:

You should submit a short report in English that includes the following: 1. Description of the steps that you have followed to have your machine (VM) or the WSL working and the problems that you have faced during these steps. 2. Description (in your words) of the output of each command that you have run. Also about a situation in which you can use that command (please include screen shots of your try out commands).