Enable root account
1. Unlock root account: sudo passwd -u root 2. Set password for root account: sudo passwd root 3. Check that it works: su
1. Unlock root account: sudo passwd -u root 2. Set password for root account: sudo passwd root 3. Check that it works: su
1. Install vino: sudo apt-get install vino 2. Configure vino: vino-preferences 3. Add to start-up applications this command: /usr/lib/vino/vino-server
Suppose you have following XML file: <?xml version="1.0"?> <configuration> <parameter> <name>param1</name> <value>value1</value> </parameter> <parameter> <name>param2</name> <value>value2</value> </parameter> <parameter> <name>param3</name> <value>value3</value> </parameter> </configuration> And you need to get param2's value. In…
B---C---D branch-1 / ---A \ E---F---G branch-2 $ git checkout branch-2 $ git rebase branch-1 B---C---D branch-1 / \ ---A E'--F'--G' branch-2
A---B---C branch-1 D---E---F branch-2 $ git checkout branch-2 $ git cherry-pick B A---B---C branch-1 D---E---F---B' branch-2
In complex shell scripts, it is useful to have more output control with echo. This is very handy in a function where output will be used as a return value,…
To detect absolute name of a given file, run following command: readlink -f <file_name> For example: $ readlink -f ./test /home/leonid/test
For example, you have a file or a variable containing several lines of text: lines=”line one line two line three” To append given string to the end of each line…
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…