Linux

Archive for the ‘Hardware’

Make the lights of your NIC blink

If you work on a large network and you get sent to the server room to check out a certain network card, you might get lost in the multitude of network hardware. To find your certain NIC, SSH to the machine in question an[...]


Check your laptop battery in Linux

If you run Linux off a laptop, you might want to check your battery status alt least once a year: grep -F capacity: /proc/acpi/battery/BAT0/info This will output something like design capacity:    &nb[...]


List Linux processes by CPU or Memory usage

You can use a one-string command in Linux to nicely display in CLI the processes that consume your CPU. Use ps -e -o pcpu,cpu,nice,state,cputime,args --sort pcpu | sed ‘/^ 0.0 /d’ and you will get something l[...]


Copy images in Linux from the iPhone’s pictures folder

Linux applications do not yet support the newest 2.x Apple firmware for the iPhone and iPod Touch. But if you want to copy images from the Pictures folder, all you need is SSH installed on the device: scp root@192.168.1.[...]