Thursday, July 7, 2016

Screen command quick start guide

To create a new session, write the following with your session name instead of [session]: screen -R [session] This will start a new session with name [session](if not created before) in a new clean "screen". To dettach the session just press: Ctrl + a  (realease keys) d To attach the screen session again, write again: screen -R [session] To list all the screen sessions: screen...

Tuesday, July 5, 2016

Command line history

The history command can be used to list all the previous commands you have typed before. The syntax is as following: history n where n is the number of commands you have typed before. Example: This lists the last 5 commands typed before: $ history 5 510 cp /home/pepito/myfile /home/pepito/myfolder 511 ls 512 ip addr show 513 ifconfig 514 history 5 You can select to execute a command...

Shortcuts to cut, copy & paste on a terminal command line

Ctrl + u : Deletes from the cursor back to the line start. . Ctrl + k : Deletes from the cursor to the end of the line. Ctrl + w : Deletes until after the previous word boundary. Alt + d : Deletes until before the next word boundary. Ctrl + y : Yank/Past the previous killed text at he cursor position. Alt + y :...

Compress and Extract gz, .tar.gz, and .zip

Compress and Extract gz, .tar.gz, and .zip .tar.gz: Compress: tar -czvf file.tar.gz folder/to/compress/ Extract: tar -xzvf file.tar.gz .tar: Compress: tar -cvf file.tar folder/to/compress/ Extract: tar -xvf file.tar .gz: Compress: gzip -9 file Extract: gzip -d file.gz .zip: Compress: zip file.zip folder/to/compress/ Extract: unzip file.z...

Monday, July 4, 2016

SIOCDELRT error when try to delete a single route from route table

If you want to delete a single route from the route table, you have to specify enough parameters to make this route unique. For example, this gives you an error, because the mask is not specified: $ sudo route del -net 192.168.5.0 SIOCDELRT: No such process This gives you a successful output, because the mask is properly specified: $ sudo route del -net 192.168.5.0/24 ...

Friday, July 1, 2016

Popular Posts

Recent Posts

Unordered List

Text Widget

Pages

Search This Blog

Powered by Blogger.