background preloader

Shell

Facebook Twitter

Linux tips every geek should know | TuxRadar. What separates average Linux users from the super-geeks? Simple: years spent learning the kinds of hacks, tricks, tips and techniques that turn long jobs into a moment's work. If you want to get up to speed without having to put in all that leg-work, we've rounded up over 50 easy-to-learn Linux tips to help you work smarter and get the most from your computer. Enjoy! UPDATE: If these tips aren't enough and you want even more, make sure you check out More Linux tips every geek should know! #1: Check processes not run by you Difficulty: Expert Application: bash Imagine the scene - you get yourself ready for a quick round of Crack Attack against a colleague at the office, only to find the game drags to a halt just as you're about to beat your uppity subordinate - what could be happening to make your machine so slow?

OK, let's list all the processes on the box not being run by you! Ps aux | grep -v `whoami` Or, to be a little more clever, why not just list the top ten time-wasters: find . Reset . Best Vim Tips - Vim Tips Wiki - a Wikia wiki. Here is a necessarily cryptic list of the Best Vim Tips. There is an updated version and a printer friendly version. Basic use <Esc> is the escape key or use <ctrl>[ sometimes written as <C-[> vimtutor : starts vim editing a copy of a tutorial file -- very good. i : insert mode. Next keys typed are inserted into the file. <Esc> : Escape from insert mode so you can navigate and use edit commands (stop selecting) h j k l : move cursor ( h: ← j: ↓ k: ↑ l: → ) A : Append at end of line o : Insert at new line below u : undo last command, again and again x : delete character under cursor dw : delete everything right from the cursor to the start of next word (and put it into the default register) dd : delete line (and put it into the default register) p : paste the default register /myname : search forward for myname :wq : write and quit :x : write and quit :w filename : write a copy of the file you are editing as filename :q!

: quit without saving even if changes were made! Still basic Great :r! How to write a Linux virus in 5 easy steps. Note: I posted a follow up to summarise points and comments I receivedas part of the overwhelming feedback to this article. Please read this follow-upbefore (!) Posting a comment, since some of what you might want to saymay already have been addressed. For the gist of it... ... just scroll down to the compact step-by-step guide. The rumor of the bullet-proof Linux architecture There is this rumor going around that Linux is virus free. Therefore, we are told, the very architecture of Linux is so much more superior to Windows that it's just not possible to successfully spread malware. At least so the story goes. Some notes before we get started Update: There has been a lot of feedback about me using the term 'virus' not correctly here.

I should point out: The vulnerabilities we will be taking advantage of are 'features' of the most popular modern Linux desktop environments, Gnome and KDE. Getting users to open attachments: Check out these nude shots! Whoa, check out these nude shots of...! 40 Free Tutorials on Advanced Drawing Techniques - VECTORTUTS. Add a Binary Payload to your Shell Scripts. Generally when we think of shell scripts we think of editable text, but it's possible to add binary data to your shell script as well. In this case we're going to talk about adding a binary payload to the end of your shell script. Adding a binary payload to a shell script could, for instance, be used to create a single file shell script that installs your entire software package which could be composed of hundreds of files.

You merely append the tar or gzip file of your package as a binary payload to the script file, when the script runs it extracts the payload and does its task with the extracted files. For this example I assume the appended file is a tar.gz file. The payload is appended to the end of an installation script preceded by a marker line (PAYLOAD:). The appended data is either uuencoded or just binary data. . #! In addition to appending the payload it also modifies the installer script to tell it whether the payload is binary or uuencoded. $ sh install.sh Install files?

Ubuntu Extreme.