r3 - 04 Jan 2008 - 23:47:07 - PorchLightYou are here: TWiki >  Main Web > LinuxCommandTricks

LinuxCommandTricks

Unzip all the zip files in the current directory.

find *.zip -exec unzip {} \;

PS Tree view

ps axfu

root      4353  0.0  0.1  11268  1828 ?        Ss   Oct26   0:00 /usr/sbin/gdm
root      4354  0.0  0.2  11620  2612 ?        S    Oct26   0:00  \_ /usr/sbin/gdm
root      4357  9.5  3.5  53232 45700 tty7     Ss+  Oct26  10:36      \_ /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
user     4788  0.0  0.5  17424  6672 ?        Ss   Oct26   0:00      \_ /usr/bin/gnome-session
user     4832  0.0  0.0   4332   728 ?        Ss   Oct26   0:00          \_ /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-s
hplip     4384  0.0  0.0  12876   916 ?        Ssl  Oct26   0:00 /usr/sbin/hpiod
hplip     4389  0.0  0.3   9408  4672 ?        S    Oct26   0:00 python /usr/sbin/hpssd
cupsys    4472  0.4  0.1   4332  2080 ?        Ss   Oct26   0:26 /usr/sbin/cupsd
root      4515  0.0  0.0   1556   264 ?        SNs  Oct26   0:00 /usr/sbin/powernowd -q
root      4571  0.0  0.0   2120   840 ?        Ss   Oct26   0:00 /usr/sbin/cron

Kill/Log out user by pts

skill -KILL -v pts/(number here)

Make a 1Gb swap file and use it.

This needs to be added to fstab for use beyond the next reboot.
  1. dd if=/dev/zero of=/extraswap bs=1M count=1024
  2. mkswap /extraswap
  3. swapon /extraswap
  4. In fstab, add /extraswap none swap sw 0 0

-- PorchLight - 27 Oct 2007

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions

tip TWiki Tip of the Day
Server side include
To include the contents of a web page or TWiki topic, use %INCLUDE{"page"}% . Examples: %INCLUDE ... Read on Read more

 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback