DispersedNet
SiteMap
Unix Concepts
Shell Programming
Shell Scripting
Unix Questions
Unix Commands
«Prev
Next»
Shell Programming
Shell Processes
login Shell
Define Unix Process
Starting Other Shells
Parent Child Processes
3 Ways Shell Script
Specify Shell Script
Unix Path Variable
Shell Script Conclusion
Embedded Commands
Defining embedded Execution
Embedded Command Syntax
Application Embedded Execution
Date Command Options
forLoop Embedded Execution
insert Carriage Return
embedded Command Conclusion
Unix Commands
Find Command
wc Command
sort Command
read in Variables
Sleep Clear Commands
Grep Command
coption to grep
tee Command
Shell Script
Debugging Shell Scripts
Tracing Shell Scripts
Handling Errors
Printing Progress
Writing Shell Functions
WC Command - Exercise
Objective:
Practice finding files and listing file size using the wc command.
Exercise Scoring
This exercise is auto-scored and is worth 4 points.
Download files
Find the file named clothes in your home directory.
Instructions
Write a command using the
–l
option with the
wc
command to display the number of lines in the clothes file.
Write a command to copy the number of lines in the file called clothes into the variable line count. Use embedded command execution.
Write a command to display the location of the volleyball file. Start your search in your home directory.
Write a command to display all the directories owned by user bin. This time, start your search in the /etc directory.
Submitting your exercise
This exercise is auto-scored; when you complete the exercise, click the
Submit
button to receive full credit.