Posts

Showing posts from March, 2014

How to run a command or application with a different CPU priority in Windows 7 using DOS command

Use the "start" command in command line to start a command or application with different CPU priority. start /[priority] [command or path to application] The priorities are: low normal high realtime abovenormal belownormal Example start /high [path-to-command/application]

How to run a command with a different CPU priority in Linux

Use nice to start a command with a different CPU priority in Linux. nice -n [num] [command with arguments] The nice number range from 19 to -20. 0 is the normal priority, 19 is the lowest priority and -20 is the highest priority. However, you will need admin rights to use -20. Eaxmples Run a command with the lowest priority. nice -n 19 [command with arguments]

How to find and delete files using command in Linux

How to use the command line in Linux to perform find/search and delete files. Find files with a search term (wildcard is *) and remove them. find . -name "search term" -exec rm -f {} \; Before running the command verify the results of the find command by running just find . -name "search term" Examples: Find all files having .txt (*.txt) extension in the current directory and remove them: find . -type f -name "*.txt" -exec rm -f {} \; Find all files having .txt (*.txt) extension in the current directory and remove them with confirmation: find . -type f -name "*.txt" -exec rm -i {} \; References, Sources and Credits: http://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/