【Linux】interview

(3) Top 10 Linux Job Interview Questions - YouTube

Can you answer the 10 most popular Linux tech job interview questions?
0:00 Introduction
0:53 Tech Phone screens
1:50 How to check the kernel version of a Linux system?

1
2
3
4
man uname

uname -a # everything
uname -rsm

2:50 How to see the current IP address on Linux?

1
2
3
4
ifconfig

ip addr
ip addr show eth0

4:03 How to check for free disk space in Linux?

1
2
3
4
5
6
man df
df -ah

df -T -h
# ?????
du -sh * | grep G

6:33 How to check the size of a directory in Linux?

1
2
man du
du -sh directory_name/

4:55 How to see if a Linux service is running?

1
2
service udev status
systemctl status udev

7:02 How to check for open ports in Linux?

1
2
3
man netstat
netstat -tulpn
sudo !! # show PID/Program name

9:48 How to check Linux process information (CPU usage, memory, user information, etc.)?

1
2
3
ps -aux | grep ngrok
top
htop

11:49 How to deal with mounts in Linux

1
2
3
ls /mnt
mount /dev/sdb2 /mnt
less /etc/fstab

13:51 Man pages
15:04 Other resources