We have a folder named “/home/tux/pictures” that contains al…
We have a folder named “/home/tux/pictures” that contains all our photos. Over the years, we have imported them from various sources and various formats. We want to move out of this folder all the photos who are not of a well-known format like gif jpg or jpeg, and put them into a subfolder name “/home/tux/pictures/unknown_formats/”. Provide one line of shell that will move these files in the appropriate subfolder, regardless of what our current working directory is. Along with this one line of shell, provide any command to set specific options of the shell so that your solution works regardless of the default options being turned on right now.
Read DetailsWe want to list all the processes running on our system but,…
We want to list all the processes running on our system but, instead of displaying the default information on each, we want to display the following columns (in that specific order): Username of the user who started the process Niceness level of the process Process Identifier Start time of the process Name of the command that was issued to start it (along with its arguments) Please note: it is part of this exercise to have you search through the ps manpage for some of the necessary syntax if it has not all been introduced in the slides examples.
Read Details