当前位置:网站首页>Commands related to obtaining administrator permissions
Commands related to obtaining administrator permissions
2022-07-28 20:19:00 【Guanglongyu】
1. sudo Use of commands
| command | explain |
|---|---|
| sudo -s | Switch to root user , Get administrator privileges |
| sudo | The execution of a command requires administrator permission. You can add... Before the execution of the command sudo |
- Sometimes it is sudo su
- If only one operation requires administrator permission, it is recommended to use sudo , That is, temporarily use manager permissions .
- If a large number of operations require administrator privileges sudo –s, However, the operation needs to be cautious .
2. whoami Use of commands
| command | explain |
|---|---|
| whoami | View the current user limit |
3. exit Use of commands
| command | explain |
|---|---|
| exit | Logout user |
- If it is the login user after switching , Exit will return to the last login account .
- If it's a terminal interface , Exit the current terminal .
4. who Use of commands
| command | explain |
|---|---|
| who | See all the login users |
5. passwd Use of commands
| command | explain |
|---|---|
| passwd | Change user password , Do not specify a user. Change the password of the current login user by default |
6. which Use of commands
| command | explain |
|---|---|
| which | Check the command location |
7. Use of shutdown and restart commands
| command | explain |
|---|---|
| shutdown –h now | Turn off immediately. |
| reboot | restart |
边栏推荐
- 83.(cesium之家)cesium示例如何运行
- 9. Pointer of C language (3) classic program, exchange the value of two numbers for deep analysis, (easy to understand), are formal parameters and arguments a variable?
- Implementation of strstr in C language
- [C language] print pattern summary
- WPF--实现WebSocket服务端
- Basic knowledge of C language
- Two methods to judge the size end
- 9. Pointer of C language (1) what is pointer and how to define pointer variables
- CM4 development cross compilation tool chain production
- C language - data type
猜你喜欢

Related concepts of multitasking programming

What is the variance?
![[C language] header file of complex number four operations and complex number operations](/img/f9/b389fe5367f1fa6cd18aaac856bc0d.png)
[C language] header file of complex number four operations and complex number operations

Stories of Party members | Li qingai uses cartoons to drive farmers to increase income and become rich

The cloud native programming challenge is hot, with 510000 bonus waiting for you to challenge!

Circular linked list OJ question

9. Pointer of C language (3) classic program, exchange the value of two numbers for deep analysis, (easy to understand), are formal parameters and arguments a variable?
![[C language] Hanoi Tower problem [recursion]](/img/d8/ff66928c2bc2ad906e38a360a8cf94.png)
[C language] Hanoi Tower problem [recursion]

C语言数据 3(2)

Kubeedge releases white paper on cloud native edge computing threat model and security protection technology
随机推荐
Related concepts of multitasking programming
私有化部署的即时通讯平台,为企业移动业务安全保驾护航
How can Plato obtain premium income through elephant swap in a bear market?
JS batch add event listening onclick this event delegate target currenttarget onmouseenter OnMouseOver
Basic knowledge of C language
C language function
Raspberrypico serial communication
七种轮询介绍(后附实践链接)
MySQL command statement (personal summary)
Wust-ctf2021-re school match WP
Return and job management of saltstack
Using Lex (Flex) to generate lexical analyzer of PL language
Raspberry pie 3b ffmpeg RTMP streaming
C language operators and input and output
Implementation of memcpy in C language
Solve the brick stacking problem (DP)
Raspberry pie CM4 -- using metartc3.0 to integrate ffmpeg to realize webrtc push-pull streaming
Practice of real-time push demo of three web messages: long polling, iframe and SSE
Prometheus deployment
Introduction to seven kinds of polling (practice link attached)