1) Monitoring
- To see running processes: ps -f
- To see processes by application name: ps ax | grep <appname>
- Kill process: kill -9 <pid>
- Signal to process (for example to restart nginx): kill -s HUP <pid of master nginx>
- Used for monitoring system input/output: iostat
- System-monitor process-viewe: htop or top
- Sisplays network connections: netstat
- Ensure that all directories are 775
or
chmod 0755 $(find . -type d)
- Make all files group and owner readwrite
- make sh script executable:
chmod +x <name.sh>
- To see changes in file in real time: tail -f <file name>
- Create symbolic link ln -s <real file location>
- Find file: find ./ -name <searchterm>
- Text viewer/editor : nano <filename>
- Text viewer/editor : vim <filename>need to press
- SVN
- GIT
git commit -a -m "bug fixed" git pushor
git add <changed file> git commit -m "bug fixed"
git push
Good posts:
Some Useful Linux Commands
The 10 most useful Linux commands