CS 475: HW #1, Due Date: Wednesday March. 17, 2021 1. [5 Points] Follow the instructions given during the class to install 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 ls – directory listing o ls -al – formatted listing with hidden files o cd dir - change directory to dir o cd – change to home o pwd – show current directory o mkdir dir – create a directory o dir rm file – 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 cp file1 file2 – copy file1 to file2 o cp -r dir1 dir2 – copy dir1 to dir2; create dir2 if it doesn't exist o mv file1 file2 – rename or move file1 to file2 if file2 is an existing directory, moves file1 into directory file2 o ln -s file link – create symbolic link link to file touch file – create or update file o cat > file – places standard input into file o more file – output the contents of file o head file – output the first 10 lines of file o tail file – output the last 10 lines of file o date – show the current date and time o cal – show this month's calendar o uptime – show current uptime o w – display who is online o whoami – who you are logged in as o uname -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 df – show disk usage o du – show directory space usage o free – show memory and swap usage o whereis app – show possible locations of app o which app – show which app will be run by default o chmod 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 – write (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 grep 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 exit o Ctrl+W – erases one word in the current line o Ctrl+U – erases the whole line o Ctrl+R – type 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] Make 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 Linux 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 talk about a situation in which you can use that command (please include screen shots of your try out commands).