Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Linux Cheat Sheets (awk, ed, sed, bash, screen, perl)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
pkrumins
n00b
n00b


Joined: 31 Jan 2008
Posts: 5

PostPosted: Thu Jan 31, 2008 7:44 pm    Post subject: Linux Cheat Sheets (awk, ed, sed, bash, screen, perl) Reply with quote

Hey! While learning various linux tools in the past, I made several cheat sheets to speed up learning process. Recently I decided to put them on my blog.

Here is a link to all the cheat sheets on my blog:
cheat sheets at catonmat (my blog)

They include:
* awk (awk, nawk and gawk) programming language cheat sheet,
* sed, unix stream editor, cheat sheet,
* ed, interactive unix text editor, cheat sheet,
* perl's special variable cheat sheet,
* perl's pack/unpack and printf/sprintf function cheat sheet,
* screen vt100 terminal emulator cheat sheet,
* bash vi editing mode (readline) cheat sheet, and
* bash emacs editing mode cheat sheet.


Tell me what you think and I hope you find them useful :)

ps. I have 5-10 more to publish, if you are interested, check back and possibly subscribe to my posts via rss :)
_________________
P.Krumins ([URL="http://twitter.com"]@pkrumins[/URL] on Twitter)
Blogging at [URL="http://www.catonmat.net"]good coders code, great reuse[/URL]. 13,000 subscribers and counting!


Last edited by pkrumins on Thu Jan 31, 2008 7:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
pkrumins
n00b
n00b


Joined: 31 Jan 2008
Posts: 5

PostPosted: Thu Jan 31, 2008 7:44 pm    Post subject: Reply with quote

hmm, I am not sure why the links did not get converted to clickable <a href>'s...
_________________
P.Krumins ([URL="http://twitter.com"]@pkrumins[/URL] on Twitter)
Blogging at [URL="http://www.catonmat.net"]good coders code, great reuse[/URL]. 13,000 subscribers and counting!
Back to top
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1742
Location: Kentucky

PostPosted: Thu Jan 31, 2008 7:48 pm    Post subject: Re: Linux Cheat Sheets (awk, ed, sed, bash, screen, perl) Reply with quote

pkrumins wrote:
Hey! While learning various linux tools in the past, I made several cheat sheets to speed up learning process. Recently I decided to put them on my blog.

Here is a link to all the cheat sheets on my blog:
[URL="http://www.catonmat.net/projects/cheat-sheets"]cheat sheets at catonmat (my blog)[/URL]

They include:
* awk (awk, nawk and gawk) programming language cheat sheet,
* sed, unix stream editor, cheat sheet,
* ed, interactive unix text editor, cheat sheet,
* perl's special variable cheat sheet,
* perl's pack/unpack and printf/sprintf function cheat sheet,
* screen vt100 terminal emulator cheat sheet,
* bash vi editing mode (readline) cheat sheet, and
* bash emacs editing mode cheat sheet.


Tell me what you think and I hope you find them useful :)

ps. I have 5-10 more to publish, if you are interested, check back and possibly subscribe to my posts via rss :)


Removing the quotation marks fixes your links.
_________________
Time is what keeps everything from happening all at once.
Back to top
View user's profile Send private message
pkrumins
n00b
n00b


Joined: 31 Jan 2008
Posts: 5

PostPosted: Thu Jan 31, 2008 7:52 pm    Post subject: Re: Linux Cheat Sheets (awk, ed, sed, bash, screen, perl) Reply with quote

EzInKy wrote:
Removing the quotation marks fixes your links.


Oh, great! I just fixed them all! Thanks! :)
_________________
P.Krumins ([URL="http://twitter.com"]@pkrumins[/URL] on Twitter)
Blogging at [URL="http://www.catonmat.net"]good coders code, great reuse[/URL]. 13,000 subscribers and counting!
Back to top
View user's profile Send private message
Yggdrasill
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2005
Posts: 103
Location: Belgique - Liège

PostPosted: Thu Jan 31, 2008 8:06 pm    Post subject: Reply with quote

Nice blog ;)

Thanks for your cheats sheets !
_________________
MacBook 13,3" Core2Duo 2,0GHz
'- Mac Os X Leopard 10.5.1
'- Gentoo
Back to top
View user's profile Send private message
AaronPPC
Guru
Guru


Joined: 29 May 2005
Posts: 522
Location: Tucson, AZ

PostPosted: Thu Jan 31, 2008 10:17 pm    Post subject: Reply with quote

Thanks!
_________________
--Aaron
Back to top
View user's profile Send private message
nanafunk
n00b
n00b


Joined: 29 Jun 2005
Posts: 36

PostPosted: Mon Feb 04, 2008 5:29 pm    Post subject: Reply with quote

First freenode, now gentoo forums, why don't you quit spamming the internet with your cheat-sheets which you have extracted from the manpages and fucking die. Thanks.
Back to top
View user's profile Send private message
nabla²
Apprentice
Apprentice


Joined: 17 May 2005
Posts: 280

PostPosted: Wed Feb 06, 2008 8:51 pm    Post subject: Reply with quote

nanafunk wrote:
First freenode, now gentoo forums, why don't you quit spamming the internet with your cheat-sheets which you have extracted from the manpages and fucking die. Thanks.

What's wrong with you? Your post is completely useless except for bumping a thread which is from your point of view useless. :roll: :lol:
_________________
Gentoo on Intel Core Duo 2 E6750, Gigabyte P35-DS3P, NVIDIA 8800GTS (amd64)
Back to top
View user's profile Send private message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 778
Location: Brooklyn, New York

PostPosted: Wed Feb 06, 2008 11:01 pm    Post subject: Reply with quote

nabla² wrote:
nanafunk wrote:
First freenode, now gentoo forums, why don't you quit spamming the internet with your cheat-sheets which you have extracted from the manpages and fucking die. Thanks.

What's wrong with you? Your post is completely useless except for bumping a thread which is from your point of view useless. :roll: :lol:


he's a noob obviously :)
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Thu Feb 07, 2008 2:58 pm    Post subject: Reply with quote

nanafunk wrote:
First freenode, now gentoo forums, why don't you quit spamming the internet with your cheat-sheets which you have extracted from the manpages and fucking die. Thanks.
Personal attacks are not permitted here. Banned.
_________________
www.gentoo.org.au || #gentoo-au
Back to top
View user's profile Send private message
ryker
Guru
Guru


Joined: 28 May 2003
Posts: 412
Location: Portage, IN

PostPosted: Thu Feb 07, 2008 5:26 pm    Post subject: Reply with quote

mark_alec FTW. :)

BTW, the cheat sheets and some of the other stuff on the website is pretty nice. Sure, much of it is from man and info pages, but it's in a nice concise format.
_________________
Athlon 64 3200+, 80G WD sata hd + 200G IDE, 1G Geil DDR400, MSI K8T Neo
IntelCore2Duo 2.0Ghz MSI laptop,100G SATA hd, 2G RAM
Back to top
View user's profile Send private message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 778
Location: Brooklyn, New York

PostPosted: Thu Feb 07, 2008 5:39 pm    Post subject: Reply with quote

ryker wrote:
mark_alec FTW. :)

BTW, the cheat sheets and some of the other stuff on the website is pretty nice. Sure, much of it is from man and info pages, but it's in a nice concise format.


agreed, very well constructed cheat sheets.
Back to top
View user's profile Send private message
pkrumins
n00b
n00b


Joined: 31 Jan 2008
Posts: 5

PostPosted: Tue Feb 19, 2008 3:28 pm    Post subject: Definitive Guide to Bash Command Line History Reply with quote

Hi all! I just wrote a another article with a cheat sheet. It's called "The Definitive Guide to Bash Command Line History". This tutorial teaches you how to quickly retrieve and modify commands you executed previously.

It starts by reviewing the keyboard shortcuts for history retrieval in emacs and vi editing modes, then it covers the commands for listing and erasing the history, then it goes into discussing history expansion mechanism - event designators, word designators and their modifiers. Finally the guide lists variables and options to modify the default history behavior.

The cheat sheet comes in PDF, Plain Text ASCII and LaTeX:

_________________
P.Krumins ([URL="http://twitter.com"]@pkrumins[/URL] on Twitter)
Blogging at [URL="http://www.catonmat.net"]good coders code, great reuse[/URL]. 13,000 subscribers and counting!
Back to top
View user's profile Send private message
easy target
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2008
Posts: 134

PostPosted: Tue Feb 19, 2008 4:11 pm    Post subject: Reply with quote

You can also use PageUp/PageDown to quickly search commands starting with typed text.

Example:
Code:
$ vim[PageUp]

gives you history of files edited with vim

or
Code:
$ xpdf man[PageUp]

searches for files starting with 'man' and opened with xpdf.

Just be sure to set the following in /etc/inputrc (or ~/.inputrc):
Code:
"\e[5~": history-search-backward
"\e[6~": history-search-forward
Back to top
View user's profile Send private message
pkrumins
n00b
n00b


Joined: 31 Jan 2008
Posts: 5

PostPosted: Thu Dec 04, 2008 2:33 am    Post subject: Set Operations in Unix Shell Reply with quote

Hi all, again! :)

I just published another article which comes with a cheat sheet. In this article I implemented various set operations by using awk, comm, sort, uniq, diff, join, head, tail, and other Unix utilities.

The article explains 14 various set operations:
* Set Membership.
* Set Equality.
* Set Cardinality.
* Subset Test.
* Set Union.
* Set Intersection.
* Set Complement.
* Set Symmetric Difference.
* Power Set.
* Set Cartesian Product.
* Disjoint Set Test.
* Empty Set Test.
* Minimum.
* Maximum.

The article can be read here: Set Operations in Unix Shell

I also created a .txt version of the article (cheat sheet):

What do you think about it?
_________________
P.Krumins ([URL="http://twitter.com"]@pkrumins[/URL] on Twitter)
Blogging at [URL="http://www.catonmat.net"]good coders code, great reuse[/URL]. 13,000 subscribers and counting!
Back to top
View user's profile Send private message
furanku
l33t
l33t


Joined: 08 May 2003
Posts: 905
Location: Hamburg, Germany

PostPosted: Fri Dec 12, 2008 11:41 pm    Post subject: Reply with quote

As much as I appreciate your efforts to collect tables and lists from help and man pages and info files, I'm not sure if you run into legal problems if you claim
Quote:

© 2007 Peteris Krumins

as you do on some of your cheat sheets, esp. if you publish them without mentioning the original source, author or license. I'm not a lawyer and certainly won't imply any maliciousness from you, but I have stong doubts that this copyright remark is legally correct.

No offense meant, but IMHO you should investigate a bit about possible license issues.

Thanks anyway for your work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum