Q1) Execute following commands.
1. List all directories and files in current directory/drive
2. Create a file college.txt in current directory/drive
3. Check if college.txt exist by using appropriate command
4. List all files having “.txt” extension
5. Delete college.txt
Answers
Answer:
The SunOS command line is used to manipulate files and directories. You type in the file and directory names in conjunction with SunOS commands to carry out specific operations. This is different than using the OpenWindows File Manager, where files are displayed as icons that can be clicked on and moved, and commands are selected from menus.
This chapter introduces you to the concepts and procedures used to work with files and directories from the SunOS command line. These operations apply to any SunOS command line, whether you are using a Shell or Command Tool in the OpenWindows environment or are logged in from a remote terminal. To fully make use of the SunOS operating system it is essential for you to understand the concepts presented in this chapter.