Handy Linux Commands
I use most of these commands every day to simplify my terminal interactions with an Ubuntu development box. This is more of a personal reference but thought I would share incase you find it useful.
| Task | Command |
|---|---|
| Get all users on the system |
|
| Delete all .svn or any file name by replacing .svn in the command with your filename | find ./ -name ".svn" | xargs rm -Rf |
| Look for enabled modules or particular environment settings in PHP |
for example |
| Push a line of text into a file |
to reset file content to ‘text to push’ – |
| Create an empty file | touch filename.ext |
| Watch a file on the command line. Useful for viewing logs whilst debugging. |
tail -f /var/log/filename.extuse control + c to break
|
| Break the current command | Use the keyboard combination control + c
|
| Access to MySQL | Converting Microsoft Access MDB Into CSV Or MySQL In Linux |
Comments powered by Disqus