Unix commands bucket

Written on 8 December 2014, 10:20pm

Tagged with: , , ,

Cleaning up my bookmarks and finishing and old draft post in the same time šŸ™‚

1. Getting started

Linux 101 Hacks eBook
http://linux.101hacks.com/toc

Introduction To Linux Commands
http://coding.smashingmagazine.com/2012/01/23/introduction-to-linux-commands/

5 Unix Commands I Wish Iā€™d Discovered Years Earlier (man ascii, cal, xxd, ssh, mdfind)
http://spin.atomicobject.com/2013/09/09/5-unix-commands/

VI common commands:
http://www.cs.colostate.edu/helpdocs/vi.html

Unix Programming Resources
http://www.whoishostingthis.com/resources/unix-programming/

2. OS

ps aux
a = show processes for all users
u = display the process’s user/owner
x = also show processes not attached to a terminal
http://www.unix.com/man-page/All/1b/ps/

top
http://www.unix.com/man-page/linux/1/top/

strace
http://www.unix.com/man-page/linux/1/strace/

How to run commands in the background properly:
http://felixmilea.com/2014/12/running-bash-commands-background-properly/

3. Networking

netstat -a
Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships

wget
Non interactive network downloader

wget --save-cookies cookies.txt http://domain.com/login
wget --load-cookies cookies.txt http://domain.com/secured

curl
Transfer an URL

Analyze log files (ex from Apache) using AWK/SED:
http://www.the-art-of-web.com/system/logs/
http://snippets.aktagon.com/snippets/15-log-file-analysis-with-awk-calculating-the-sum-and-average

And one for Windows:
net useshow the mapped drives

C:\Documents and Settings\user> net use
New connections will be remembered.

Status       Local     Remote                    Network
-------------------------------------------------------------------------------
             P:        \\my.domain.com\www\public
                                                 Microsoft Windows Network
OK           S:        \\chaos\devd$    Microsoft Windows Network
             
The command completed successfully.
--------------------------------------------------------

Random links #4

Written on 23 September 2014, 04:42pm

Tagged with: , , , ,

1. 5 Unix Commands I wish Iā€™d discovered earlier. Ok, mainly talking about xxd

2. The Birthday problem: in a class of 30 students, probability that today is an anniversary: 8%. Probability that 2 students have the same birthday: 70% http://en.wikipedia.org/wiki/Birthday_attack

3. ColdFusion Developers, switch to Sublime Text! I already did it, years ago.

4. Top 9 IT security certifications. In case you need one.

5. He was asked to crack a program as part of a job interview. Twice šŸ™‚

6. He quit his job. It was the biggest mistake ever

Assorted pills
Photo: istockphoto