Assignment Unix Day 4 Assignment
Assignment Unix Day 4 Assignment
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
root@ranjan18dec:~#
root@ranjan18dec:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 2.3G 13G 16% /
devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 391M 952K 390M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/loop0 64M 64M 0 100% /snap/core20/2434
/dev/loop1 375M 375M 0 100% /snap/google-cloud-cli/287
/dev/loop2 92M 92M 0 100% /snap/lxd/29619
/dev/loop3 39M 39M 0 100% /snap/snapd/21759
/dev/sda15 105M 6.1M 99M 6% /boot/efi
/dev/loop4 45M 45M 0 100% /snap/snapd/23258
tmpfs 391M 0 391M 0% /run/user/1001
root@ranjan18dec:~# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 2.3G 13G 16% /
devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 391M 952K 390M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/loop0 64M 64M 0 100% /snap/core20/2434
/dev/loop1 375M 375M 0 100% /snap/google-cloud-cli/287
/dev/loop2 92M 92M 0 100% /snap/lxd/29619
/dev/loop3 39M 39M 0 100% /snap/snapd/21759
/dev/sda15 105M 6.1M 99M 6% /boot/efi
/dev/loop4 45M 45M 0 100% /snap/snapd/23258
tmpfs 391M 0 391M 0% /run/user/1001
root@ranjan18dec:~# free -m
total used free shared buff/cache available
Mem: 3908 215 2814 0 878 3459
Swap: 0 0 0
root@ranjan18dec:~# free -g
total used free shared buff/cache available
Mem: 3 0 2 0 0 3
Swap: 0 0 0
root@ranjan18dec:~# free -h
total used free shared buff/cache available
Mem: 3.8Gi 216Mi 2.7Gi 0.0Ki 878Mi 3.4Gi
Swap: 0B 0B 0B
root@ranjan18dec:~# du
4 ./snap/lxd/29619
4 ./snap/lxd/common
12 ./snap/lxd
16 ./snap
4 ./.ssh
4 ./.config/procps
8 ./.config
40 .
root@ranjan18dec:~# uptime
14:53:32 up 23:43, 1 user, load average: 0.00, 0.00, 0.00
root@ranjan18dec:~# last
harshita pts/0 172.217.41.168 Thu Dec 19 14:38 still logged in
harshita pts/0 172.217.41.168 Thu Dec 19 13:58 - 14:22 (00:24)
harshita pts/0 35.235.241.16 Wed Dec 18 15:26 - 15:38 (00:12)
reboot system boot 5.15.0-1071-gcp Wed Dec 18 15:10 still running
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;google.com. IN A
;; ANSWER SECTION:
google.com. 300 IN A 172.217.214.100
google.com. 300 IN A 172.217.214.139
google.com. 300 IN A 172.217.214.113
google.com. 300 IN A 172.217.214.138
google.com. 300 IN A 172.217.214.102
google.com. 300 IN A 172.217.214.101
Non-authoritative answer:
Name: google.com
Address: 172.217.214.101
Name: google.com
Address: 172.217.214.102
Name: google.com
Address: 172.217.214.138
Name: google.com
Address: 172.217.214.113
Name: google.com
Address: 172.217.214.139
Name: google.com
Address: 172.217.214.100
Name: google.com
Address: 2607:f8b0:4001:c1e::64
Name: google.com
Address: 2607:f8b0:4001:c1e::8b
Name: google.com
Address: 2607:f8b0:4001:c1e::65
Name: google.com
Address: 2607:f8b0:4001:c1e::8a