processes
searching
screen
tmux
moving files
100

A quick way to pull up a static list of processes.

ps

100

Use this command when you're looking for a file in a given directory and you know the exact filename.

find

100

This allows you to view all of the active screen sessions.

screen -ls

100

Rather than ctrl-b, this is the "prefix key" for tmux on our systems.

ctrl-s

100

This command is used to move a file from our current directory to another directory.

mv

200
This is the default "live process monitor."

top

200

Use this command when you are searching for a string of characters in a given file.

grep

200
This allows you to reattach to a given screen session.

screen -r [session_id]

200

On our system, this set of keypresses will toggle you between synchronized panes and non-syncronized panes.

ctrl-s, ctrl-s

200

To prevent the unintentional overwriting of an existing file during a move, what flags/option should we select?

-i
300

This is likely the best process for looking up the pid when you know the exact program you're looking for.

pidof

300

This command looks for specific characters within the filename itself, like when you only know part of the name of the filename.

locate

300

This program is similar to screen in many ways, but is optimized for working in multiple servers at once.

tmux
300

When we "tmux" into multiple servers using: tmux -mh -s\!, this is the flag that's preventing a "screen" from being run automatically.

-s

300

This is another common use for mv that doesn't actually involve moving the file from one place to another.

Renaming the file.
400

A good way to see the "process tree" of a pid.

pstree

400

This command tells you where on the directory tree a particular command or program is.

which

400

A process you started running in a screen session will do this if your terminal crashes.

Continue to run in the background.
400

As a general rule, we type this after using tmux to access multiple servers, and entering sudo -i and our password.

screen

400

If you wanted to rename a file AND move it up one directory level to a directory called "Stuff," you would use this format.

mv file_a ../Stuff/file_b

500
An excellent way to find out what files/processes are using a given pid.

lsof

500

This command returns a quick, one line summary of the command you've searched for.

whatis

500

Screen -s followed by a program name starts that process within a screen session immediately. (E.g. "screen -s top" will start a screen session and begin running top inside it right away).

The capital -S version of screen allows you to do this.

Name your screen session.

500

This will show you all active tmux sessions on a given server.

tmux ls

500

This flag/option will prevent a file from being overwritten when using mv.

-n (No clobber)