参考这篇文章http://www.hoffman2.idre.ucla.edu/access/x11_forwarding/
一般来说没有配置显示,只能显示x类的图像,而无法显示这些glx类与显卡有关的图像,此时需要在进行登录
时需要配置这些文件,例如对于mac系统,需要下载2.7.9版本的XQuartz,支持了glx这个选项,此时需要在终端
运行 defaults write org.macosforge.xquartz.X11 enable_iglx -bool true 这样关于
glx 的应用 glxinfo glxgears 就可以正常运行了.
printf(format,expression,expression,...)
format should be quoted
| fmt | $1 | printf(fmt,$1) |
|---|---|---|
| %c | 97 | a |
| %d | 97.5 | 97 |
| %5d | 97.5 | ___97 |
| %e | 97.5 | 9.750000e+01 |
| %f | 97.5 | 97.500000 |
| %7.2f | 97.5 | __97.50 |
| %s | January | January |
| %10s | January | ___January |
| %-10s | January | January___ |
| %.3s | January | Jan |
| %10.3s | January | _______Jan |
| %-10.3s | January | Jan_______ |
| %% | January | % |