A quick way to pull up a static list of processes.
ps
Use this command when you're looking for a file in a given directory and you know the exact filename.
find
This allows you to view all of the active screen sessions.
screen -ls
Rather than ctrl-b, this is the "prefix key" for tmux on our systems.
ctrl-s
This command is used to move a file from our current directory to another directory.
mv
top
Use this command when you are searching for a string of characters in a given file.
grep
screen -r [session_id]
On our system, this set of keypresses will toggle you between synchronized panes and non-syncronized panes.
ctrl-s, ctrl-s
To prevent the unintentional overwriting of an existing file during a move, what flags/option should we select?
This is likely the best process for looking up the pid when you know the exact program you're looking for.
pidof
This command looks for specific characters within the filename itself, like when you only know part of the name of the filename.
locate
This program is similar to screen in many ways, but is optimized for working in multiple servers at once.
When we "tmux" into multiple servers using: tmux -mh -s\!, this is the flag that's preventing a "screen" from being run automatically.
-s
This is another common use for mv that doesn't actually involve moving the file from one place to another.
A good way to see the "process tree" of a pid.
pstree
This command tells you where on the directory tree a particular command or program is.
which
A process you started running in a screen session will do this if your terminal crashes.
As a general rule, we type this after using tmux to access multiple servers, and entering sudo -i and our password.
screen
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
lsof
This command returns a quick, one line summary of the command you've searched for.
whatis
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.
This will show you all active tmux sessions on a given server.
tmux ls
This flag/option will prevent a file from being overwritten when using mv.
-n (No clobber)