Title | Linux - lab1 - Essay |
---|---|
Author | Carlos Ricco |
Course | Introduction to the Linux Operating System |
Institution | Santa Barbara City College |
Pages | 2 |
File Size | 49.2 KB |
File Type | |
Total Downloads | 72 |
Total Views | 124 |
Essay...
10/30/2020
linux - lab1
linux - lab1 # CS134 Script Header, Spring 2016 ProblemStart () { if [ -f ~/bin/processStart ]; then source ~/bin/processStart $1; fi set -o verbose } ProblemEnd () { set +o verbose read -p "(press Enter) " input if [ -f ~/bin/processEnd ]; then source ~/bin/processEnd $1 $input; fi } # force the script to begin running in HOME directory (~) cd ~ echo # (don't change anything above this line !) #---------------------------------------------------------------------# replace Jimi's name with your name below, using format: Last, First myName="Wanderley, Luis " echo $myName; echo echo 1111111111111111111111111111111111111111111111111111111111111111111 ProblemStart 1 # -- REMOVE this line and put your Linux statement(s) here -ProblemEnd 1 echo -n "My User Name: "; whoami echo -n "This Computer: "; hostname echo -n "Remote Computer: "; $1; ssh $1 "who -H" pwd echo 2222222222222222222222222222222222222222222222222222222222222222222 ProblemStart 2 # -- REMOVE this line and put your Linux statement(s) here -echo -n "DATE: "; date +"%A, %B %d, %Y" echo -n "TIME: "; date +"%r" ls $2 fold -w$3 -s $2 ProblemEnd 2
echo 3333333333333333333333333333333333333333333333333333333333333333333 ProblemStart 3 # -- REMOVE this line and put your Linux statement(s) here -1/2
10/30/2020
linux - lab1
cd ~ pwd mkdir -p d11/d22/d33 cd d11/d22 cp $2 ~/d11/easy touch d33/xxx d33/yyy d33/zzz mv ../easy ./hard tree ../ tree ~/d11/d22/d33 tree ~/d11 ProblemEnd 3
echo 4444444444444444444444444444444444444444444444444444444444444444444 ProblemStart 4 # -- REMOVE this line and put your Linux statement(s) here -cat -A $4 od -a $4 hd $4 ProblemEnd 4
echo 5555555555555555555555555555555555555555555555555555555555555555555 ProblemStart 5 # -- REMOVE this line and put your Linux statement(s) here -read -p "Enter 3 different numbers between 32 and 127 with space between each one: " var1 var2 var3 chr(){ printf "Number $1 has \\$(printf '%03o' $1) as ascii!\n" } chr $var1 chr $var2 chr $var3 "lab2.t.lcwanderley" 84L, 1993C 1,1 Top
2/2...