xugaoxiang | 迷途小书童

Linux common commands-81: lspci

lspci command is used to display PCI bus device information Syntax format: lspci [parameters] Common parameters: Example # 列出当前主机的所有PCI总线设备信息lspci This article is reprinted from https://xugaoxiang.com/2022/07/04/linux-cmds-81-lspci/ This site is for inclusion only, and the copyright belongs to the original author.

Linux common commands-81: lspci Read More »

Linux common commands-80: sudo

sudo is a permission management mechanism. Administrators can authorize ordinary users to perform operations that only root can perform without knowing the root password. The default configuration is stored in the /etc/sudoers file. Syntax format: sudo [parameter] Common parameters: Example # 切换到root sudo su # 列出目前的权限sudo -l # 以root权限执行命令ifconfig -a sudo ifconfig -a This article

Linux common commands-80: sudo Read More »

Linux common commands-79: sort

The sort command sorts the files and outputs the sorted results. The sort command can either manipulate files or get it from stdin . Syntax format: sort [parameter] [file] Common parameters: Example # 读取文件test.py的每一行,相互比较,依次ASCII码值进行比较,按升序输出sort test.py # 忽略相同行sort -u test.py This article is reprinted from https://xugaoxiang.com/2022/06/26/linux-cmds-79-sort/ This site is for inclusion only, and the copyright belongs

Linux common commands-79: sort Read More »

Linux common commands-78: ldd

The ldd command is used to print the libraries that a program or library file depends on Syntax format: ldd [parameter] [file] Common parameters: Example ldd /bin/ls This article is reprinted from https://xugaoxiang.com/2022/06/26/linux-cmds-78-ldd/ This site is for inclusion only, and the copyright belongs to the original author.

Linux common commands-78: ldd Read More »

Linux common commands-77: diff

The diff command compares text files for similarities and differences line by line. If a folder is specified, diff will only compare files with the same filename in the directory, but not subdirectories within it. Syntax format: diff [parameter] [directory] Common parameters: Example diff test1.py test2.py Among them, “<” means that test2.py has one line

Linux common commands-77: diff Read More »

Linux common commands-76: dhclient

The dhclient command uses the DHCP protocol to configure the network parameters of the network interface. Syntax format: dhclient [parameter] [network interface] Common parameters: Example # 在指定网口上请求dhcp dhclient eth0 # 释放ip dhclient -r This article is reprinted from https://xugaoxiang.com/2022/06/26/linux-cmds-76-dhclient/ This site is for inclusion only, and the copyright belongs to the original author.

Linux common commands-76: dhclient Read More »

Linux common commands-75: ulimit

Linux for each user, the system can limit the maximum number of processes used, this command is ulimit . Syntax format: ulimit [parameter] Common parameters: Example # 显示当前系统的设置ulimit -a # 设置每个进程可以打开的文件句柄数ulimit -n 4096 This article is reprinted from https://xugaoxiang.com/2022/06/23/linux-cmds-75-ulimit/ This site is for inclusion only, and the copyright belongs to the original author.

Linux common commands-75: ulimit Read More »

Linux common commands-74: insmod

The insmod command is used to load the given module into the kernel. The loaded module can be viewed through lsmod . Syntax format: insmod [parameter] Common parameters: Example # 加载模块test.ko insmod test.ko This article is reprinted from https://xugaoxiang.com/2022/06/23/linux-cmds-74-insmod/ This site is for inclusion only, and the copyright belongs to the original author.

Linux common commands-74: insmod Read More »

Linux common commands-73: lsmod

The lsmod command is used to display status information about modules that have been loaded into the system kernel. The kernel of the linux operating system is modular, and some functions can be compiled into independent modules and loaded when needed. Syntax format: lsmod Example lsmod This article is reprinted from https://xugaoxiang.com/2022/06/23/linux-cmds-73-lsmod/ This site is

Linux common commands-73: lsmod Read More »

Linux common commands-72: whoami

The whoami command prints the currently logged in username. Syntax format: whoami [parameter] Common parameters: Example # 显示当前登录的用户名whoami This article is reprinted from https://xugaoxiang.com/2022/06/23/linux-cmds-72-whoami/ This site is for inclusion only, and the copyright belongs to the original author.

Linux common commands-72: whoami Read More »

Linux common commands-71: who

The who command is used to print the information of the currently logged in user, including the system startup time, active process, user ID , terminal used and other information. It is a common command for system administrators to understand the running status of the system. Syntax format: who [parameter] [options] Common parameters: Example #

Linux common commands-71: who Read More »

Linux common commands-70: pstree

The pstree command displays all processes in a tree view. Syntax format: pstree [parameter] Common parameters: Example # 显示系统中进程和进程号pstree -p This article is reprinted from https://xugaoxiang.com/2022/06/22/linux-cmds-70-pstree/ This site is for inclusion only, and the copyright belongs to the original author.

Linux common commands-70: pstree Read More »