Linux上读取文件的方法: #!/bin/bash # This is a script for test exec CONFIG_FILE=$ #该脚本传一个文件名为参数 FILE_NO= echo $CONFIG_FILE exec < $CONFIG_FILE #将$CONFIG_FILE中的内容作为exec的标准输入 read FILE_NAME #读取内容到FILE_NAME中 ] #只要read命令在配置文件中发现还有记录可读,它就会在?变量中返回一个表示成功的退出状态码0 do
最近使用 useradd -r 选项进行创建账户,用于测试,对-r 选项不是很明白,下面记录一些调研的过程: -r, --system Create a system account. System users will be created with no aging information in /etc/shadow, and their numeric identifiers are chosen in the SYS_UID_MIN-SYS_UID_MAX range, defined
package Java_Test; public class System1 { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(System.getProperty("java.version")); System.out.println(System.getProperty("java.vendor")); System