思考题
0.1
结果不一样。第一次执行add前,README.txt还未被git跟踪,执行第一次add后,README.txt接入git版本控制,再修改README.txt的内容,此时README.txt的状态为修改但未暂存。
0.2
add the file: git add
stage the file: git add
commit: git commit
0.3
1. git restore print.c
2. git reset HEAD print.c git checkout HEAD print.c
3. git rm –cache hello.txt
0.4
变化1:git log 最上方为 2
变化2:git log 最上方为 1
变化3:git log 最上方为 3
0.5
标准输出first
output.txt的内容为second
output.txt的内容改为third
output.txt的内容后附加forth
0.6
command文件的内容为:
touch test
echo echo Shell Start… > test
echo echo set a = 1 » test
echo echo a=1 » test
echo echo set b = 2 » test
echo b=2 » test
echo echo set c = a+b » test
echo echo Shell Start 输出 echo Shell Start。
echo `echo Shell Start` 输出 Shell Start
echo echo $c>file1 file1的内容是echo $c
echo `echo $c>file1` file1的内容是 $c
难点分析
本次实验较为简单,实验指导书中明确给出了解决方案。
比如刚执行完 diff
实验体会
我在寒假期间,由于冯如杯需求,安装了Ubuntu GUI虚拟机,简单了解了linux系统操作方法。
本次实验学习了linux OS的基础操作、文件管理,并学习了gcc make等部分GUN工具,还了解了ssh连接服务器的方法。