Part 2. What commands accomplish the following? 4. Creates a file named tmpfiles
ID: 3755364 • Letter: P
Question
Part 2. What commands accomplish the following? 4. Creates a file named tmpfiles that contains the names of the contents of the /tmp directory. 5. Counts the number of currently running system processes 6. Informs the bash shell that when you enter see, you want the more utility executed 7. Creates a new directory named Ballroom. 8. Lists the contents of the Ballroom directory. Part 3. Complete the following. Verify that your answer is correct by trying your s) in Linux and getting the expected output. Keep track of commands and record any online sources used. 9. How can you determine which shell (sh, bash, ksh, csh, tcsh) you are in?Explanation / Answer
4. ls > tmpfiles (this command will list all the contents of the file in tmpfiles. We need to run this command in /tmp directory)
5. ps aux | wc -l
6. alias see=more ( whenever we run see command more will be executed)
7. Mkdir Ballroom ( A directory Ballroom will be created at the location where this command is run)
8. ls Ballroom ( all the contents i.e. the files present in the directory Ballroom)
9. echo $0 ( The shell we are using will be prinited e.g - bash)