Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Whatis ls -1? Explain. 2. Whatis Is -F? Explain. 3. What doesls-A andls-amean

ID: 668668 • Letter: 1

Question

1. Whatis ls -1? Explain. 2. Whatis Is -F? Explain. 3. What doesls-A andls-amean and display? 4. What doesls-Cmeanand display? 5. What doesls-fmeanand display? 6. What doesls-Fmean anddisplay? 7. What doesls-Umean and display? 8. What doesls-S andls-s mean anddisplay? 9. What does taç mean in Chapter 3? 10. Whatis head commandmean? 11. Whatis tail mean? 1 2 . What is vi editor? 13. What does.q. q!, and:wqmean. 14. Whatis cat? 15. Explain whatdoes tail-2 project 4 mean. 16. Whatis grep and egrep? 17·Thexi editor's command mode is startedby pressing 18. Use incommandmode to delete the current line 19. To save a file in the VI editor and continue working, we type C. wg 2 1 . Press,--to enter the VI editor to addtext 22·There are three modes in the VI Editor. Which mode allows the user to enter commands to perform editingtasks? (circle corect answers) 23. Insertmodeb. Emode c. VI mode d. CommandMode 24. Create a file name Thing ToDo in the yi editor?

Explanation / Answer

1. ls -l is used to returns the files and folders in the current folder that match the specified name to list.

2. ls -F used to list in a formatted way.

4.ls -C used to list entries by coulmn.

5. ls- f -do not sort the listing of files and folders.

6.-F, --classify

7. ls- U, do not sort; list entries in directory order

8. ls -S used to sort the files by size. Larget size file will come first.

ls-s used to print the allocated size of each files in blocks.

9. tac command concatenate and print files in reverse. Options with tac command are like (-b,-r and -s.)

10.head command is used to print the first N lines from the file to the terminal. Syntax:-

11.tail prints the last 10 lines of each FILE to standard output. Syntax:

12. Vi editor:The vi editor (short for visual editor) is a screen editor which is available on almost all Unix systems. Once you have learned vi, you will find that it is a fast and powerful editor. vi has no menus but instead uses combinations of keystrokes in order to accomplish commands.

13. :q! option used to exit without saving changes.

:wq used ro save and exit the file. :ZZ can also be used for the same purpose.

14.cat is frequently used command in unix/linux. There are many use to cat command. Some are mentioned below :

-The most common use of cat is to read the contents of files: synstax: cat file1

-Combinig copies of the files.

-Also used to create new files.Syntax: cat > file1 press enter to instert more content to file and press ctrl+D to save and exit from the file.

15. Assuming that you are considering project 4 as a file. tail-2 projetc 4 is used to list last 2 lines from the file project 4.

16. grep- grep is an acronym that stands for "Global Regular Expressions Print". grep is a program which scans a specified file or files line by line, returning lines that contain a pattern: syntax:

egrep-grep is an acronym that stands for "Extended Global Regular Expressions Print". The 'E' in egrep means treat the pattern as a regular expression. "Extended Regular Expressions" abbreviated 'ERE' is enabled in egrep. egrep (which is the same as grep -E) treats +, ?, |, (, and ) as meta-characters.

17. vi commnad mode starts by pressing esc key.

18.:dd can be used to delete the current line.

19.:w cmmnad can be used

20 press esc I to insert text.

21.Insert mode

24. File name Thingstodo can be made using the command.

vi Thingstodo

you can write the content to the file and save and exit using esc :wq.

26. h move left (backspace)

j move down

k move up

l move right (spacebar)

i insert before cursor

a append after cursor

28. File name pizza can be created using vi Pizza command. yy commnad can be used as : (yank)'copies' line which may then be put by the p(put) command. Precede with a count for multiple lines.