PDF Google Drive Downloader v1.1


Báo lỗi sự cố

Nội dung text Linux Interview Questions

Linux Interview Questions Q: How do you list hidden files in a directory? A: ls -la Q: How do you check the size of a folder in linux? A: du -sh Q: How do you check if a port is open? A: netstat -lntp Q: Write a script to find files accessed in the last 30 days A: find /path -atime -30 -type f Q: How do you check running logs A: by following the logs tail -f /path/to/log Q: How to check memory usage on a Linux server? A: We can use multiple commands to check the RAM usage. free -h This command displays the total RAM, cached ram, used, free ram, etc. top command displays the dynamic memory usage by different system processes.


[ ec2-user@ip-172-31-94-7 ~ ]$ ifconfig ens5: flags=4163 mtu 9001 inet 172.31.94.7 netmask 255.255.240.0 broadcast 172.31.95.255 inet6 fe80::109e:8bff:fe0b:15ff prefixlen 64 scopeid 0x20 ether 12:9e:8b:0b:15:ff txqueuelen 1000 (Ethernet) RX packets 90037 bytes 124566405 (118.7 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 14061 bytes 1594878 (1.5 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 Q: What is the purpose of the "chmod" command in Linux? A: chmod command is used to change the permissions of the file or directory. We can set RWX permissions to the owner, group and others. Q: What do you do when disk space is full on the server? A: check the disk space using df -hT

Tài liệu liên quan

x
Báo cáo lỗi download
Nội dung báo cáo



Chất lượng file Download bị lỗi:
Họ tên:
Email:
Bình luận
Trong quá trình tải gặp lỗi, sự cố,.. hoặc có thắc mắc gì vui lòng để lại bình luận dưới đây. Xin cảm ơn.