Convert .odt to .doc
libreoffice --headless --convert-to doc *.odt
Convert .odt to .docx
libreoffice --headless --convert-to docx *.odt
Convert .doc to .docx
libreoffice --headless --convert-to docx *.doc
Convert .odt to .doc
libreoffice --headless --convert-to doc *.odt
Convert .odt to .docx
libreoffice --headless --convert-to docx *.odt
Convert .doc to .docx
libreoffice --headless --convert-to docx *.doc
cat hello.z01 hello.zip > hello-concatenated.zip zip -F hello-concatenated.zip unzip hello-concatenated.zip
Add text in the beginning of the file
1st line
2nd line
3rd line
sed -i '1i Top of the file!' <filename>
Top of the file!
1st line
2nd line
3rd line
A brief explanation of the sed command parameters that we used:
-i : This will update the contents of the file and automatically save it
1i : This means, insert to the 1st line of the file
Add text at the end of the file
echo "hello" >> greetings.txt
cat temp.txt >> data.txt
date >> dates.txt
table
{
counter-reset: Serial;
border-collapse: separate;
}
tr td:first-child:before
{
counter-increment: Serial; /* Increment the Serial counter */
content: counter(Serial); /* Display the counter */
}
table.table1
{
counter-reset: Serial 5;
border-collapse: separate;
}
table.table1 tr td:nth-child(2):before /* It will affect in Second td */
{
counter-increment: Serial -1; /* Increment the Serial counter */
content: counter(Serial); /* Display the counter */
}
<table class=”table1″>
<tbody>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table>
Output:
5 | |
4 | |
3 | |
2 | |
1 |
If you want use this same concept with multiple tables add this following css
tr.space_bw_rows td {
padding-top: 40px;
border: none;
}
tr.noBorder td {
padding-bottom: 20px;
border: 0;
<table class=”table1″>
<tbody>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr class=”space_bw_rows”><td></td></tr>
<tr class=”noBorder”> <td colspan=”3″><p align=”center” class=MsoNormal><strong>2015</strong></p></td> </tr>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table>
Easily you can edit the file:
gedit ~/.config/nautilus/servers
You can edit the file and remove some entries or if you just want to delete all history you can remove this file:
rm ~/.config/nautilus/servers
Check Ubuntu version from terminal:
Step 1: Open the terminal.
Step 2: Enter the lsb_release -a command.
netstat – a command-line tool that displays network connections, routing tables, and a number of network interface statistics.
$ sudo netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1158/mysqld
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 5390/redis-server 1
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 699/smbd
tcp 0 0 0.0.0.0:9391 0.0.0.0:* LISTEN 4938/openvassd: Wai
tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 2218/dnsmasq
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 1345/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1029/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 7420/cupsd
tcp 0 0 127.0.0.1:5943 0.0.0.0:* LISTEN 1320/teamviewerd
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 1271/postgres
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2140/master
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 699/smbd
tcp6 0 0 :::139 :::* LISTEN 699/smbd
tcp6 0 0 :::9390 :::* LISTEN 4962/openvasmd
tcp6 0 0 :::9392 :::* LISTEN 5442/gsad
tcp6 0 0 :::80 :::* LISTEN 2367/apache2
tcp6 0 0 :::22 :::* LISTEN 1029/sshd
tcp6 0 0 ::1:631 :::* LISTEN 7420/cupsd
tcp6 0 0 :::25 :::* LISTEN 2140/master
tcp6 0 0 :::443 :::* LISTEN 5201/gsad
tcp6 0 0 :::445 :::* LISTEN 699/smbd
pg_dump -U username -d db_name -t table_name –exclude-table-data table_name > table_structure.sql