Course Hero Logo

Uli101 assignment 2 part 3.docx - 1. Display the contents...

This preview shows page 1 out of 1 page.

1.Display the contents of the file ‘bashrc’ within the home directory of your instructor (userid)Cat ~userid/.bashrc2.Your current directory is sample_dir. Display the 2ndline of the file cars2, translated to uppercase(hint: start with a ‘head’ command)Head -2 stenton/gen_ed/cars2 | tail -1 | tr ’a-z’ ‘A-Z’3.Your current directory is sample_dir. Display cars2 sorted numerically by the 4thfield.Sort -n -k4 stenton/gen_ed/cars24.Your current directory is sample_dir. Display only the 1stfield (last name) of each record inphone_directory using ‘cut’. Note that the field delimiter is a space.Cut -d “ “ -f1 stenton/phone_directory5.Your current directory is sample_dir. Find the records in cars2 that contain the string “ford” and
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
sipser
Tags
Symbolic link, Display cars2

Unformatted text preview: display the number of bytes in the result Grep “ford” stenton/gen_ed/cars2 | wc -c 6. Your current directory is sample_dir. Change the permissions (using octal) for cars2 so that an ‘ls -l’ listing would show rwxr-x—x. Chmod 751 stenton/gen_ed/cars2 7. Your current directory is sample_dir. Add the permission (using symbolic) for gen_ed so that all users can access the file cars2 Chmod a+x stenton/gen_ed 8.Your current directory is sample_dir. Create a hard link to cars2, called cars3 within sample_dir Ln stenton/gen_ed/cars2 cars3...
View Full Document

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture