时间
CST 也可以指 中国标准时间(China Standard Time),UTC+8。这是中国的法定时区,没有夏令时调整。
date +"%Y-%m-%d %H:%M:%S %Z %:z
- %Z 显示时区缩写(如 CST)。
- %:z 显示时区偏移量(如 +08:00、-06:00)。
修改时间
timedatectl
是一个管理日期和时间的工具,可以用来永久设置系统时间和时区。
1
| sudo timedatectl set-time "2024-10-26 19:12:19"
|
修改时区
如果发现时区也不正确,可以用下面的命令设置时区:
1
| sudo timedatectl set-timezone "Asia/Shanghai"
|
例如,将时区设置为中国标准时间 (CST, UTC+8),时区名称需要使用 timedatectl list-timezones
查看可用的时区列表。
硬盘/挂载空间
各个文件夹空间
deep为1
进程查看与kill
1 2 3 4
| ps aux | grep 1499321 ps -auxf | grep -nB 10 -E 'python[3]?|PID' kill -9
|
ps aux linux command whill show no zero cpu usage when the process is sleeping beacuse of its snapshots mechanism
apt-get problems
1 2 3 4 5 6
| dpkg: 处理归档 /var/cache/apt/archives/bat_0.12.1-1build1_arm64.deb (--unpack)时出错: 正试图覆盖 /usr/.crates2.json,它同时被包含于软件包 ripgrep 11.0.2-1build1 dpkg-deb: 错误: 粘贴 子进程被信号(断开的管道) 终止了 在处理时有错误发生: /var/cache/apt/archives/bat_0.12.1-1build1_arm64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
|
tree
deep size
tree -L DepthSIze Folder_Path
so文件分析
1 2
| nm -gDC intel64/gcc4.8/*
|
- -g:显示全局符号表。
- -D:显示动态符号表。
- -C:将 C++ 符号名还原成源代码中的名称。
综合来看,使用 nm -gDC <filename>
命令可以查看一个二进制可执行文件或者共享库中的全局符号表和动态符号表,并将包含其中的 C++ 符号名还原成源代码中的名称。
1 2 3 4 5 6 7
| shaojiemike@snode6 ~/github/gem5 [10:49:56] > nm /usr/local/lib/libprotobuf.a |c++filt|grep google::protobuf::MessageFactory::InternalRegisterGeneratedFile U google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)) 0000000000000e00 T google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))
ldd .so
|
参考文献
无