Commands

In your shell window, enter the following commands. They should work without errors if typed exactly as shown. (Note: You will start your session in your home directory. You will want to make a directory in your udrive to hold CSE374 work. You may do this by typing the following commands:

cd ~/udrive
mkdir cse374
cd cse374
mkdir hw0
cd hw0

The script command will capture the terminal session and save it in a file named hw0.script in the current directory.

script hw0.script
echo $SHELL
whoami
pwd
uname -a
gcc --version -std=c11
exit

Here is what each command does:

  • script - makes a typescript of everything on your terminal session.
  • echo - displays a line of text.
  • whoami - prints your current, effective username.
  • pwd - prints the absolute path of your current working directory.
  • uname - prints basic system information.
  • gcc - GNU project C and C++ compiler.
  • exit - terminates a shell.