CSCI 1730 FINAL EXAM STUDY GUIDE
Renaming a file: mv <file1> <file2> (rename)
1. Moving a file: mv <file> <dir> (move)
2. Move and Rename a file: mv <file1> <dir/file2>
3. Copying a file: cp <file1> [<file2>|<dir>|<dir/file2>]
4. Removing a file: rm [-i] <file(s)>
5. Create a subdirectory of the current directory: mkdir <dir_name>
6. Remove a directory (only works for empty directories): rmdir <dir_name>
7. Remove a directory and all of its contents, including sub-directories: rm -r
<dir_name>
8. exiting from the shell and disconnecting from ssh: exit
9. current log in proccesses: ps
10. all current log in processes: ps -ef
11. Find what user you are on the machine you are currently logged into: whoami
12. Find the current date and time stamp: date
13. current month calendar date and graphical representation: cal
14. See the time that the current system has been available (or up): uptime
15. Web get utility (copy the file url to the present working directory): wget
16. try to find files starting with a certain name or pattern: find
17. How many vcfs are there?: 4
18. how to ssh into vcf?: ssh
0 can be replaced by
1,2 or 3
1/9
, 19. Home IP Address (i just know this is going to be on the final): 127.0.0.1
20. displays the contents of the file: cat
21. debugging inforation flag: -g
22. Turns on all the warnings flag: -Wall
23. pedantic way of displaying errors flag: -pedantic-errors
24. C doesn't have pass by reference:
25. Types of system calls:
File I/O process management
Inter-process communication (IPC) - pipe, signals, sockets, ...
Single handling
2/9
Renaming a file: mv <file1> <file2> (rename)
1. Moving a file: mv <file> <dir> (move)
2. Move and Rename a file: mv <file1> <dir/file2>
3. Copying a file: cp <file1> [<file2>|<dir>|<dir/file2>]
4. Removing a file: rm [-i] <file(s)>
5. Create a subdirectory of the current directory: mkdir <dir_name>
6. Remove a directory (only works for empty directories): rmdir <dir_name>
7. Remove a directory and all of its contents, including sub-directories: rm -r
<dir_name>
8. exiting from the shell and disconnecting from ssh: exit
9. current log in proccesses: ps
10. all current log in processes: ps -ef
11. Find what user you are on the machine you are currently logged into: whoami
12. Find the current date and time stamp: date
13. current month calendar date and graphical representation: cal
14. See the time that the current system has been available (or up): uptime
15. Web get utility (copy the file url to the present working directory): wget
16. try to find files starting with a certain name or pattern: find
17. How many vcfs are there?: 4
18. how to ssh into vcf?: ssh
0 can be replaced by
1,2 or 3
1/9
, 19. Home IP Address (i just know this is going to be on the final): 127.0.0.1
20. displays the contents of the file: cat
21. debugging inforation flag: -g
22. Turns on all the warnings flag: -Wall
23. pedantic way of displaying errors flag: -pedantic-errors
24. C doesn't have pass by reference:
25. Types of system calls:
File I/O process management
Inter-process communication (IPC) - pipe, signals, sockets, ...
Single handling
2/9