Wayne is using the command line and is in his home directory. Which of the following will display a list of all files and their sizes from his home directory? (Choose two.) ls-ax ~ ls-al ~ ls-al /home/wayne ls-ax
Added by Lisa S.
Step 1
Let's think step by step. Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 58 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
What will be the output of the following command? (Choose all that apply.) $ ls /etc | tee file1.txt | grep ^p | tee file2.txt | sort -r Group of answer choices: 1. It will sort and display the files starting with 'p' in reverse order and store the output in the file2.txt file. 2. It will sort and display the files starting with 'p' and store the output in the file2.txt file. 3. It will store the contents of the /etc in the file1.txt file. 4. It will search for the file names starting with 'p' in the file1.txt file.
Akash M.
List the contents of your home directory. Write a script to copy EVERYTHING in your home directory to a directory called "OldStuff". Then redirect the output of the 'ls' command to a file called "mystuff". NOTE: Afterwards, if you run the 'ls' command on your home directory, you should only see the directory "OldStuff". Then, in "OldStuff", you should see all your items from your home directory.
In the command prompt tool, how do I change to the Documents directory and display a text file? 11/14/2017 09:00 AM <DIR> .. 11/14/2017 08:56 AM 69 calendar 11/14/2017 08:55 AM <DIR> test 11/14/2017 08:56 AM 69 trash 2 File(s) 138 bytes 3 Dir(s) 15,464,812,544 bytes free C:UsersTrainDocumentsCLI>del trash C:UsersTrainDocumentsCLI>dir Volume in drive C has no label. Volume Serial Number is F25A-899C Directory of C:UsersTrainDocumentsCLI 11/14/2017 09:02 AM <DIR> . 11/14/2017 09:02 AM <DIR> .. 11/14/2017 08:56 AM 69 calendar 11/14/2017 08:55 AM <DIR> test 1 File(s) 69 bytes 3 Dir(s) 15,464,812,544 bytes free C:UsersTrainDocumentsCLI>rd test C:UsersTrainDocumentsCLI>dir CHALLENGE #4 Incorrect Please try again or skip the challenge. At the command prompt, change to the Documents directory and display the contents of flag.txt. Enter the flag number displayed.
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