Linux Interview questions :
1.Linux Common system security commands
sudo // Super user
su // Used to switch the current user identity to other identities , When changing, you need to input the user account and password to be changed .
chmod // Permission to change a file or directory
setfacl // Set file access control list
2.Linux Common process management commands
w // Used to display the list of users who have logged into the system , And display the instruction that the user is executing .
top // It can dynamically view the overall operation of the system in real time , It is a practical tool that integrates multi information monitoring system performance and operation information .
ps // Used to report the process status of the current system .
kill // Used to delete a program or work in progress .
pkill // You can kill a process by its name .
pstree // The tree view is used to show the derivation relationship between processes , The display effect is more intuitive .
killall // Use the name of the process to kill it , Use this command to kill a group of processes with the same name .
3.Linux Common user management commands
id // It can display real and effective users ID(UID) And groups ID(GID).
usermod // Used to modify the user's basic information .
useradd // be used for Linux New system user created in .
groupadd // Used to create a new workgroup , Information about the new team will be added to the system file .
userdel // User delete the given user , And user related documents . If the model is not selected , Then delete the user account , Without deleting the relevant files .
4.Linux System shutdown and restart
shutdown reboot
5.Linux System timing task
contab -e // Create a scheduled task
6.Linux File content view
head // Used to display the contents of the beginning of a file . By default ,head Command to display the header of the file 10 Line content .
tail // Used to input tail content in a file .tail Named default
Technology