Computer articles - some interesting terminal commands in Windows/Ubuntu systems

The content is under continuous maintenance and update...

1. Windows

1. Create a placeholder file and run it in the Windows cmd window

fsutil file createnew <文件名称> <文件大小B>

For example fsutil file createnew myFile 10240

2. Ping the ip from 1 to 254 in a certain network segment in the Windows cmd window, for example, ping from 192.168.154.1 to 192.168.154.254

for /L %i IN (1,1,254) DO ping -w 1 -n 1 192.168.154.%i

3. Under the LAN, find the IP address corresponding to the mac address. (Only IPs with direct communication within 20 minutes can be searched, so you can first ping all IPs according to the second command above.)

ARP -a

二、Freedom

1. View the space usage of all files (folders) in a directory

sudo du -ah --max-depth=3

This depth is the file level to be checked.

Guess you like

Origin blog.csdn.net/u011391361/article/details/133030709