xugaoxiang | 迷途小书童

Linux common commands-111: jobs

The jobs command is mainly used to display the list of tasks in the system and their running status. Syntax format: jobs [parameter] [directory] Common parameters: Example # 显示当前的作业列表,这里以top命令为例,执行后按下ctrl+z 将任务放入后台并暂停任务jobs # 显示进程号和任务号,最前面的2就是任务号jobs -l # 只显示暂停的任务jobs -s This article is reprinted from https://xugaoxiang.com/2022/10/10/linux-cmds-111-jobs/ This site is for inclusion only, and the copyright belongs to the original […]

Linux common commands-111: jobs Read More »

Linux common commands-110: time

The time command is used to measure the time consumed by the execution of a specific instruction and information such as system resources. Such as CPU time, input and output, etc. Syntax format: time [parameter] [command] Example # 显示查看文件夹anaconda3 大小的信息time du -sh anaconda3 This article is reprinted from https://xugaoxiang.com/2022/09/28/linux-cmds-110-time/ This site is for inclusion only,

Linux common commands-110: time Read More »

Linux common commands-109: tcpdump

The function of the tcpdump command is to monitor network traffic. It is a commonly used data packet capture software in Linux systems. It can record all data packets passing through the server. The command requires root privileges. Syntax format: tcpdump [parameter] Common parameters: Example # 监听指定网口的数据包sudo tcpdump -i enp0s25 # 监听指定主机的数据包,可以使用ip 地址,也可以域名sudo tcpdump host

Linux common commands-109: tcpdump Read More »

Linux common commands-107: nslookup

The nslookup command is mainly used to query the DNS information of a domain name. It has two working modes: interactive mode and non-interactive mode. Enter nslookup directly to enter the interactive mode, and the prompt is > . Syntax format: nslookup [parameter] [domain name] Common parameters: Example # 非交互模式下查询nslookup baidu.com # 交互模式下查询nslookup # set

Linux common commands-107: nslookup Read More »

Linux common commands-106: nmap

nmap is a network detection and security auditing tool used to scan hosts on the network for information. Syntax format: nmap [parameter] Common parameters: Example # 扫描主机并跟踪路由: sudo nmap –traceroute www.baidu.com # 扫描主机的端口,如80和443 sudo nmap -p80,443 www.baidu.com # 设置端口范围sudo nmap -p1024-10000 192.168.1.161 # 详细扫描sudo nmap -A 192.168.1.161 # 主机系统探测sudo nmap -sV 192.168.1.161 This article is

Linux common commands-106: nmap Read More »

Linux common commands-105: ifdown

The ifdown command is used to disable the specified network interface. root privileges are required for command execution. Syntax format: ifdown [network interface] Common parameters: Example sudo ifdown eth0 This article is reprinted from https://xugaoxiang.com/2022/09/26/linux-cmds-105-ifdown/ This site is for inclusion only, and the copyright belongs to the original author.

Linux common commands-105: ifdown Read More »

Linux common commands-104: ifup

The ifup command is used to activate the specified network interface. It corresponds to the ifdown command. Generally, the network information can be changed without restarting the system, such as changing the MAC address, setting a static IP , etc. The command execution requires root privileges. Syntax format: ifup [network interface] Common parameters: Example sudo

Linux common commands-104: ifup Read More »

Linux common commands-103: visudo

visudo command is used to open the /etc/sudoers file for easy editing and setting sudo , which requires root privileges. Syntax format: visudo [parameter] Common parameters Example sudo visudo # 文件编辑后,可以先检查一下sudo visudo -c This article is reprinted from https://xugaoxiang.com/2022/09/26/linux-cmds-103-visudo/ This site is for inclusion only, and the copyright belongs to the original author.

Linux common commands-103: visudo Read More »

Linux common commands-102: cal

The cal command is used to display the current calendar, which is an abbreviation for calendar . Syntax format: cal [parameter] [month] [year] Common parameters: Example # 默认显示当月日历cal # 显示最近三个月的日历cal -3 # 显示当年的日历cal -y # 显示特定年月的日历,如2011年11月cal 11 2021 This article is reprinted from https://xugaoxiang.com/2022/09/22/linux-cmds-102-cal/ This site is for inclusion only, and the copyright belongs to

Linux common commands-102: cal Read More »

Linux common commands-101: stat

The stat command is used to display detailed information about a file or file system Syntax format: stat [parameter] Common parameters: Example stat ubuntu-15.10-desktop-i386.iso This article is reprinted from https://xugaoxiang.com/2022/09/22/linux-cmds-101-stat/ This site is for inclusion only, and the copyright belongs to the original author.

Linux common commands-101: stat Read More »