Tips
Contents
- 1 emulate your mouse with the keyboard
- 2 analyze system performance
- 3 controlling several computers at once
- 4 renaming several files
- 5 favorite Linux-Tools
- 6 find out which files are accessed by a program
- 7 find out program that belongs to a window
- 8 convert images in a batch job
- 9 did you know...
- 10 write something on your screen
- 11 watch changes
- 12 See also
emulate your mouse with the keyboard
See emulate your mouse with the keyboard.
analyze system performance
test ||You can analyze system performance using ksar.
controlling several computers at once
When working in a cluster you can control several computers in one console using clusterssh.
renaming several files
Rename several files using the command
rename 's/BEFORE/AFTER/g' *
favorite Linux-Tools
history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head -10
find out which files are accessed by a program
To find out which files are accessed by a program start it with
strace -e open program
find out program that belongs to a window
Sometimes a window pops up and you do not know which program it is. For example you have just created a fresh user and when he logs in, he sees a window that you would like to get rid of. So you need to search where the window's program is called. So, every window is associated with a process. To find that out, call xprop and click on the window you want information about.
convert images in a batch job
Use the command convert:
convert name.format name.jpg
did you know...
key codes
... you can find out the key code of every key on your keyboard using the command xev.
split files
...you can split files using the command split.
put computer into standby mode
... you can put your computer into standby mode by opening a console and entering
echo mem > /sys/power/state
write something on your screen
...you can write something on your screen using osd_cat.
watch changes
... you can watch changes, e.g. the size of a file being written with the command watch:
dd if=urandom.img of=test.img & watch --interval=1 "du -h test.img"