locale – 设置和显示程序运行的语言环境
locale -a | grep en_US.UTF-8.sudo locale-gen en_US.UTF-8sudo dpkg-reconfigure locales
expect 常用命令总结
- expect命令
- spawn
- expect
- send
- exp_continue
- send_user
- exit
chrpath工具
chrpath 是一个用于修改可执行文件或共享库的运行时依赖库路径的工具。在 Linux 系统中,可执行文件和共享库需要找到其所依赖的库文件才能正常运行。chrpath 提供了一种修改可执行文件和共享库中的依赖库路径的方法,可以修改或移除运行时搜索路径。
使用 chrpath 工具,您可以:
查询可执行文件或共享库的当前运行时依赖库路径。
修改可执行文件或共享库的运行时依赖库路径。
移除可执行文件或共享库的运行时依赖库路径。
chrpath 对于调试、调整依赖关系或将可执行文件和共享库移动到其他位置非常有用。请注意,对于生产环境中的可执行文件或共享库,修改或移除运行时依赖库路径可能会导致程序无法正常运行,所以在使用 chrpath 时需要小心谨慎操作。
。。。
diffstat
Linux diffstat命令根据diff的比较结果,显示统计数字。
diffstat读取diff的输出结果,然后统计各文件的插入,删除,修改等差异计量。
语法
diff [-wV][-n <文件名长度>][-p <文件名长度>]
参数:
-n<文件名长度> 指定文件名长度,指定的长度必须大于或等于所有文件中最长的文件名。
-p<文件名长度> 与-n参数相同,但此处的<文件名长度>包括了文件的路径。
-w 指定输出时栏位的宽度。
-V 显示版本信息。
pzstd:
pzstd is not available in the default package repositories of most Linux distributions. Instead, you will need to build and install it manually. Here are the general steps to do so:
Install the required dependencies for building:
sudo apt-get install build-essential git
Clone the pzstd repository from Github:
git clone https://github.com/facebook/zstd.git
Change to the cloned directory:
cd zstd
Build and install pzstd:
make && sudo make install
Note: The specific steps may vary depending on your Linux distribution and version. Make sure to follow the instructions provided in the pzstd repository or refer to its documentation.
Once you have installed diffstat and pzstd, make sure they are added to the system’s PATH environment variable. You can verify their availability by running the individual commands (diffstat, pzstd) in your terminal.
After installing and verifying these tools, retry the task or installation that prompted the error message, and the required tools should now be detected and accessible.