Navigating through the codebase is not always easy, especially when you are new to it. A few shell scripts that come in handy are:
grep -RHni '{search_term}' .
Searches for the "search_term" in the current directory and all it's child directories. It returns the path to the file, line number of occurence in the file and the summary of the line that contains the "search_term"
grep -RHni --exclude-dir='{directory_name}' '{search_term}' .
A modification that I use while programming using the current Django framework, when I want to skip or exclude the matches in the migration directory is specifying "south_migrations" as the directory name. It skips over all the files in any folder that matches that name.
ps aux | grep '{search_term}'
kill -9 {pid}
In cases where my server hangs, I use the "ps aux" to list out all the processes that match with the 'search_term', in my case 'django'. Once I find the processes, I identify the pid and I use the kill command on it.
ls -la
List all the files inclusive of hidden files.
rm -rf
Force deletes the file/directory.
On ssh to a server, if your terminal window hangs on you, the trick to get out is:
Enter ~ .