Get information about a Linux process very easily and quickly.

To get information about a Linux process, use this simple trick, this is to get the processes associated with the current standard input. I.e a terminal. jason@Yog-Sothoth:~/Documents$ ps -T PID SPID TTY TIME CMD 7467 7467 pts/0 00:00:00 bash 7715 7715 pts/0 00:00:00 top 7826 7826 pts/0 00:00:00 psjason@Yog-Sothoth:~/Documents$ ps -T PID SPID TTY TIME … Read more

Get the command line of a process without the ps command.

To get the command line of a process without the ps command, and the PID of the command is known, use this command. This example is using a process with a PID of 28633. ubuntu ~ $ cat /proc/28633/cmdline ; echo upstart-socket-bridge–daemonubuntu ~ $ cat /proc/28633/cmdline ; echo upstart-socket-bridge–daemon This will show the command line … Read more

Misc UNIX and Linux tricks for the desktop user and administrator.

Uptime. this is a useful command for finding out how long a Linux system has been running for. it also displays the load average over 1.5 and 15 minute intervals. deep-thought ~ # uptime 21:45:32 up 32 min, 3 users, load average: 1.88, 1.45, 1.08deep-thought ~ # uptime 21:45:32 up 32 min, 3 users, load … Read more

Some very useful Linux command-line tips and tricks for the desktop user.

Using the install-mbr command to install a main boot record (MBR) onto a disk. [flynn@flynn-grid-runner media]$ sudo install-mbr –force –partition 1 /dev/sdi [sudo] password for flynn: [flynn@flynn-grid-runner media]$[flynn@flynn-grid-runner media]$ sudo install-mbr –force –partition 1 /dev/sdi [sudo] password for flynn: [flynn@flynn-grid-runner media]$ This command would be useful if you are building a custom image and you … Read more

Managing processes with the UNIX command line.

The Linux command-line has many powerful tools for viewing and managing running processes on your UNIX/Linux machine. The lsof command is a very useful command, it will display a list of all open files owned by active processes running on your system. Below is an excerpt from the output this command will give you. root@deusexmachina:/home/neo# … Read more