$
LinuxML
首页
命令分类
教程文章
首页
»
其他
»
printf
printf
printf 命令 - 格式化输出
格式化输出
其他
⌨️
命令语法
printf 格式 [参数...]
⚙️
常用参数
%s
字符串
%d
整数
%f
浮点数
%x
十六进制
💡
实战示例
$ printf '%s ' hello
格式化输出
$ printf '%s\\n' hello
输出字符串
$ printf '%x\\n' 255
十六进制
🔗
相关命令
column
base64
notify-send
whiptail
eval
dialog
zenity
machinectl
◀ 上一条
pip3
下一条 ▶
psql
↑