磨刀不误砍柴工
system administration is a craft
Monday, July 27, 2009
得到ubuntu的codename
之前一直不知道ubuntu的code name是放在哪里的. 这样就有个麻烦:
* 网上得到的source list当是不同的code name就无法使用.
看了人家的shell脚本才知道: /etc/lsb-release
强的shell:
$ grep 'DISTRIB_CODENAME' /etc/lsb-release | awk -F'=' '{print $2}'
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.