disk usage display

本文介绍了一种查看当前目录及其子目录下所有文件大小的方法。使用 'du' 命令配合选项 '-sh' 来以人类易读的格式仅显示总览信息,而 '-a' 选项则用于同时展示文件详情。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

to display (current) dir's disk size,

du -sh

s: show summary only, without any sub-directories
h: human-readable
a: show files, too 

"docker run -it --rm --net=host --name=usv_sim_test \ -v $HOME/catkin_ws:/root/catkin_ws/ \ -v $HOME/.uwsim:/root/.uwsim \ -v $HOME/.gazebo:/root/.gazebo \ -v $HOME/.ros:/root/.ros \ -v /tmp/.X11-unix:/tmp/.X11-unix \ --env="DISPLAY=$DISPLAY" \ --env="XDG_SESSION_TYPE=x11" \ --env="LIBGL_ALWAYS_INDIRECT=1" \ --env="QT_X11_NO_MITSHM=1" \ usv_sim bash"我现在运行上面的命令,在容器中运行roslaunch gazebo_ros empty_world.launch,出现报错“... logging to /root/.ros/log/8974de06-6552-11f0-a97a-d4e98ae8953b/roslaunch-shu-95.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB. started roslaunch server http://shu:37315/ SUMMARY ======== PARAMETERS * /rosdistro: kinetic * /rosversion: 1.12.17 * /use_sim_time: True NODES / gazebo (gazebo_ros/gzserver) gazebo_gui (gazebo_ros/gzclient) auto-starting new master process[master]: started with pid [105] ROS_MASTER_URI=http://localhost:11311 setting /run_id to 8974de06-6552-11f0-a97a-d4e98ae8953b process[rosout-1]: started with pid [118] started core service [/rosout] process[gazebo-2]: started with pid [121] [ INFO] [1753006562.280189435]: Finished loading Gazebo ROS API Plugin. [ INFO] [1753006562.280546067]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting... process[gazebo_gui-3]: started with pid [146] [ INFO] [1753006562.382109902]: Finished loading Gazebo ROS API Plugin. [ INFO] [1753006562.382600521]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting... Error [parser.cc:581] Unable to find uri[model://sun] Error [parser.cc:581] Unable to find uri[model://ground_plane] [ INFO] [1753006564.469121006]: waitForService: Service [/gazebo/set_physics_properties] is now available. [ INFO] [1753006564.488867008]: waitForService: Service [/gazebo/set_physics_properties] is now available. [ INFO] [1753006564.490178192, 0.009000000]: Physics dynamic reconfigure ready. [ INFO] [1753006564.524803889]: Physics dynamic reconfigure ready. Segmentation fault (core dumped) [gazebo_gui-3] process has died [pid 146, exit code 139, cmd /opt/ros/kinetic/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/root/.ros/log/8974de06-6552-11f0-a97a-d4e98ae8953b/gazebo_gui-3.log]. log file: /root/.ros/log/8974de06-6552-11f0-a97a-d4e98ae8953b/gazebo_gui-3*.log”
最新发布
07-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值