exit
.exit
.usqstudent
(password: initial1stPw
)root
(password: initial1stPw
)neofetch
is a tool to display information about a distro.neofetch
in the Ubuntu (WSL) app.neofetch
in the headless Debian on Hyper-V.$ date
$ df
$ cal
$ free
whoami
hostname
pwd
ls
dir
man
command is very useful.$ man ls
b
: go back.q
: quit and return to the command line.ls
(e.g., change how a file size is reported).pwd
and cd
:$ man pwd
$ man cd
$ pwd
$ ls
$ ls /usr/bin
$ cd /usr/bin
$ pwd
$ ls
$ cd
/etc
and list all files in the "long listing" format (using the -l
option).apt
package manager.$ sudo apt update
$ sudo apt upgrade
which
:$ which neofetch
apt install
:$ sudo apt install neofetch
$ sudo apt install tree
$ sudo apt install wget
$ sudo apt install batcat
$ man wget
neofetch
on the headless Debian VM running in Hyper-V, logging in as root
(since usqstudent
lacks sudo
privileges).$ ps -u usqstudent
$ top
$ MYNEWVAR=thevalue
COURSECODE
and set its value to CSC1030
.echo
:$ echo $PATH
$
symbol is needed to get the value but not to set it.PS1
controls the prompt's appearance and can be changed and printed like any other variable.$ cd ~
$ pwd
$ wget https://www.gnu.org/licenses/gpl-3.0.txt
$ ls
$ more gpl-3.0.txt
$ less gpl-3.0.txt
$ cat gpl-3.0.txt
$ head gpl-3.0.txt
$ tail gpl-3.0.txt
more
or less
, and q
to exit.nano
and vi
are the CLI text editors of choice.$ vi gpl-3.0.txt
i
to enter 'Insert Mode'.:
(in command mode).wq
and press Enter to save and quit (w = write/save, q = quit).vi
but using nano
.nano
provides help at the bottom of the screen and does not use separate modes, making it easier to learn.usqstudent
as the new account with password initial1stPw
(for ease of access, despite not being a general security best practice).