Relative and absolute paths The terminal window wants to evaluate your current bash knowledge by using the ~/workspace/nested-directories folder: 1. cd into the nested- directories/nested-level-1/ directory by using an absolute path 2. cd into the nested-level-3/ directory by using a relative path 3. Move the entire ~/workspace/config/ directory to the nested-level-1/ directory
Added by Haley W.
Close
Step 1
We can use the command "pwd" to print the current working directory and then construct the absolute path to nested-level-1. Show more…
Show all steps
Your feedback will help us improve your experience
Madhur L and 82 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a shell script to get the current date, time, username and current working directory. Print output as follows: Hello, <your user name> Current date is <current date> User is <user name> Current directory is < your current directory>
Madhur L.
Script.sh: Ask the user for a file's name. If the file exists, ask them if they would like to (C)opy, (M)ove, or (D)elete it by choosing C, M, or D. If the user chooses C, ask for the destination directory and move it there. If the user chooses M, ask for the destination directory and move it there. If the user chooses D, delete the file. For this script, ensure that the user enters only C, M, or D, warning them about the mistake if they should enter something else.
Akash M.
Provide a complete command showing the options and parameters that will find and print just the relative path and file names of files in the HW4 directory and any sub-directories that have the "setgid" bit on. • the setgid bit must be set on returned file names, other bits may or may not be set • assume the current working directory is ~/CYBR2600/HW4 • print the full file name to standard output with each name followed by a newline • print only regular file names (no directories or special files) • do not use any option that is deprecated in the installed Ubuntu VM version of the command you select.
Supreeta N.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD