Bash: check syntax of files without execution
To check bash scripts without executing them, run: bash -n <script_file> For example: bash -n my_script.bash Of course, this syntax check is very limited, because bash syntax is somewhat flexible…
To check bash scripts without executing them, run: bash -n <script_file> For example: bash -n my_script.bash Of course, this syntax check is very limited, because bash syntax is somewhat flexible…
If you have defined aliases in your .bashrc, some of them likely to have the same name as one of the programs on your system, ls is a common example.…
If you get this error message when trying to alter or drop table or modify data in a table: ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired…
Here I will show you how to configure XTerm so that it uses nice TTF fonts, uses UTF8 encoding, and shows Chinese characters (or any Unicode characters, for that matter).…
http://www.tutorialspoint.com/codingground.htm Online gcc compiler, IDE, shells, etc.
Many people try all different ways, but it seems SSH is implemented so secure that, even if you want to be unsecure a bit, it will not allow you to…
http://www.linuxvoice.com/be-a-kernel-hacker/
To check if passwordless login (using keys) has been setup simply run the following command: ssh -o BatchMode=yes <user>@<host> true For example: ssh -o BatchMode=yes user@192.168.1.101 true And examine the…
http://www.shellcheck.net/ The code: https://github.com/koalaman/shellcheck
Of course, everybody knows 'gcc --version' option to check gcc version, but output is quite verbose and is not easy to parse and use in scripts. Luckily, gcc has option…
Sometimes your programs crash and you need to do "postmortem" analysis (another case is that someones else's program crashes and you need to send them core dump file), for that…