张 顺 15300180012 e0: uname -sv e1: echo $home...cd dir/ use apt-get to install jq. total 4 3 Ê...
TRANSCRIPT
-
张 顺 15300180012
e0: uname -sv
e1: echo $HOME
e2: whoami
e3: chmod
e4: du –max-depth=1 -h
-
e5: mv 1.sh 2.sh
e6: sudu apt-get install jq
e7: ssh [email protected]
n1: sed -n 6,10p ./etc/hosts
-
n2: cp -p ./1.sh $HOME
n3: chmod a=rwx –R dir/
n4: grep –w –A1 –B1 ‘url’ commits.json
h1: ls –a –I ‘.’ –I ‘..’
-
h2: echo {a..c}{a..c}
h3: ls –l | grep –v ^total | awk '{print $1,$2;}'
h4: tr 'A-Z' 'a-z' < input.txt > output.txt
h5: du –a ./ | sort –n –r | head –n 3
h6: sum=0
for i in {1..100}
do let sum+=$i
-
done
echo $sum
h7: filelist=`find . -type f -maxdepth 1`
for file in $filelist; do wc -l $file; done