Changes

Jump to: navigation, search
INVESTIGATION 1: ABSOLUTE / RELATIVE / RELATIVE-TO-HOME PATHNAMES
|}
 
= KEY CONCEPTS =
===Pathname Types===
But this method is '''inefficient''': it requires a LOT of typing and knowing which filenames to include as separate arguments.<br>You can use a special character to indicate to the Bash shell to match all files that end with the extension ".txt":
[[Image:globbing-demo-2.png|thumb|right|400px|'''Globbing''' is the process of expanding filenames as separate arguments that match an argument that uses a '''wildcard symbol''' <br>(such as '''*''').]]
<span style="font-family:courier;>'''ls *.txt'''<br>
'''Perform the Following Steps:'''
# # Make certain that your current directory is '''your home directory'''.<br><br>
# Issue the following Linux command to run a checking script to ensure you created the CORRECT directory structure displayed as in the diagram:<br><span style="color:blue;font-weight:bold;font-family:courier;">bash /home/murray.saul/scripts/week3-check-1</span><br><br>
# If you encounter errors and re-run the checking script until you receive a congratulations message.<br><br>
[[Image:dir13week3-practice-question.png|left|300px|thumb|]]
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
# Write a single Linux command using relative pathnames to create the directory structure displayed in the diagram above.
# Write a single Linux command to create the empty files “.answers.txt” and “questions.txt” shown in the diagram above using absolute pathnames.
13,420
edits

Navigation menu