当前位置:网站首页>find及du -sh显示权限不够的解决方法
find及du -sh显示权限不够的解决方法
2022-06-26 12:37:00 【坐公交也用券】
在命令后面加上
2>/dev/null
例如
du -sh
┌──(liuyi㉿kali)-[~]
└─$ du -sh /* 2>/dev/null
0 /0
0 /bin
168M /boot
0 /dev
12M /etc
11G /home
0 /initrd.img
0 /initrd.img.old
0 /lib
0 /lib32
0 /lib64
0 /libx32
213G /media
0 /mnt
4.5G /opt
0 /proc
0 /root
1.5M /run
0 /sbin
0 /srv
0 /sys
328K /tmp
11G /usr
2.5G /var
0 /vmlinuz
0 /vmlinuz.old
┌──(liuyi㉿kali)-[~]
└─$
Find
┌──(liuyi㉿kali)-[~]
└─$ find / -name *java-11-openjdk* 2>/dev/null
/etc/java-11-openjdk
/usr/lib/debug/usr/lib/jvm/java-11-openjdk-amd64
/usr/lib/jvm/java-11-openjdk-amd64
/usr/share/gdb/auto-load/usr/lib/jvm/java-11-openjdk-amd64
/usr/share/icons/Flat-Remix-Blue-Dark/apps/scalable/java-11-openjdk.svg
┌──(liuyi㉿kali)-[~]
└─$
边栏推荐
猜你喜欢
Vscode solves the problem of Chinese garbled code
[极客大挑战 2019]RCE ME 1
File remote synchronization and backup artifact Rsync
Less than 40 lines of code to create a blocprovider
[solved] laravel completes the scheduled job task (delayed distribution task) [execute a user-defined task at a specified time]
el-form-item 包含两个input, 校验这两个input
Mongodb of NoSQL - 03 mongodb CRUD
Configuring Apache digest authentication
老司机总结的12条 SQL 优化方案(非常实用)
小程序中控件里面的内容较多,让其支持滚动的良好方案
随机推荐
dried food! Yiwen will show you SD card, TF card and SIM card!
Operation analysis and investment prospect research report of China's organic chemical raw material manufacturing industry 2022-2028
Introduction to the four major FPGA manufacturers abroad
程序员必备,一款让你提高工作效率N倍的神器uTools
7-16 货币系统Ⅰ
7-3 最低通行费
Implementing mixins scheme in applet
7-1 数的范围
Generate JDE dot train
Msvcr110 not found DLL, unable to continue code execution Solution for startup
openlayers 绘制动态迁徙线、曲线
7-2 摘花生
面试题积累
软件测试 - 基础篇
Research on the current situation of China's modified engineering plastics market and demand forecast analysis report 2022-2028
7-2 大盗阿福
JS how to judge when data contains integer and floating-point types. Floating-point decimals retain two digits after the decimal point
环形队列php
Redis learning - 01 introduction, installation and configuration
Learning directory