SCREEN SHOT # 2: SCREEN SHOT # 1 What step\'s would i need to take, so the file
ID: 3673359 • Letter: S
Question
SCREEN SHOT # 2:
SCREEN SHOT # 1
What step's would i need to take, so the file structure as seen in "Screen Shot # 1," will match what's shown in my virtual machine labeled "Screen Shot # 2?"
Or, is what i have already acceptable?
An explanation with the change's to make would be great, if i do need to make some, so i better understand were my mistake were made and that i could do this myself in the future.
Hopefully this make's sense, and thank you so much for your help!
ED webminal.org ] Offline # webminal.org - your linux ~ # Characters may appear on the screen slowly Share files with others, See /common_pool/README.txt Record and Share your session New: Progra ead/common pool/wmscr.txt ing platfor Code' menu [densberger2270@fedori -]Sls -FMyTestFiles /home/densberger2270: FinalProject/ MyTestFiles/testfile1B.txt testfile2.txt testfile.txt myscript 00:00 Powered by asciinema MyTestFIles2/ testfile1.txt testfile3.txt MyTestFiles: testfile1.txt testfile2.txt [densberger2270@fedori -S.bash{_(history,logout,profile),rc),FinalProject,.magic_str ing.txt,myscript,.mysql_history,MyTestFiles, Iles2),testfile(1(B.txt,.txt),2.txt,3.txt ,.txt)) test existence of a file [laks@webmínal.org]$ #we will see how to check for a file [laks@ webminal.org]s if [ -f /var/log/messages ] » then > echo "/var/log/messages exists" fi /var/log/messages exists [laks@webminal.org]$ ##see it says it exists..lets check manually [laks@ webminal.org]$ 1s-1 /var/log/messages rw-. 1 root root 101853 Dec 14 17:04 /var/log/messages [laks@webminal.org]s ##yes it does. Lets check for non-existing file [laks@ webminal.org]s if Lf log/messages ]; then echo "/var/log/message s exists"; fi 00:00 Powered by asciinema More details: http://tldp.org/LDP/Bash-BeginnersExplanation / Answer
Answer:)
FinalProject is a directory and not a file----make this change
MyTestFiles and MyTestFiles2 are also directories and not files-----make these changes too.
Within MyTestFiles directory create testfile1.txt and testfile2.txt--------make these changes too.
Then give "ls -F ~ MyTestFiles" command.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.