Explain what the following statements do:
ls mydir > foo.txtls mydir > foo.txt 2>&1cat file1 file2 > file3cat file1 file2 >> file3
Explain what the following statements do:
ls mydir > foo.txtls mydir > foo.txt 2>&1cat file1 file2 > file3cat file1 file2 >> file3Write the Bash statements to:
banana-file-names.txt with the concatenated contents of every file in the current directory that starts with "banana"banana-file-content.txt with the concatenated contents of every file in the current directory that contains the word "banana"Write the Bash statements to:
Explain what each of the following Bash statements does and the overall result:
$ (date ; ps -ef | awk ‘{print $1}’ | sort | uniq | wc -l ) >> processes.log
Explain what the following Bash command does:
find . -type f -atime -7 > /tmp/recent_files