A
A
Alexey Pomogaev2011-04-24 07:19:43
linux
Alexey Pomogaev, 2011-04-24 07:19:43

A useful set of recipes or a good Linux developer tutorial?

I am developing web projects in java, which are raised on linux servers. And in certain situations, you want to somehow control the linux system, to know somewhere what is happening. For example, not to open a command like lsof or know about the appearance of pitfalls like ulimit when nginx or tomcat crashes with too many open files.

So that things like this are not a discovery:

for pid in `pidof $1`; do echo "$(< /proc/$pid/cmdline)"; egrep 'files|Limit' /proc/$pid/limits; echo "Currently open files: $(ls -1 /proc/$pid/fd | wc -l)"; echo; done

Probably some kind of book for the admin, but the ones that I saw were about some network settings and other nonsense that is of little use to the developer...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
miwa, 2011-04-24
@miwa

Of those that I came across, I can recommend:
Linux is not for idiots - despite the provocative name, the main points of working in Linux are well described. Many typical problems, causes and solutions are considered.
Bash Guide for Beginners ( Russian translation ) - bash user guide for beginners. One of the most popular command shells is well considered, its capabilities are briefly described, including writing simple scripts to make everyday life easier.
On Habré , of course, you can also find good topics :)
Well, it makes sense to look at the manual for the distribution kit you are using - there will be a lot of things specific to your system (for example, for debian, for gentoo ).

M
miwa, 2011-04-24
@miwa

Oops. Here is the correct link to the Russian translation of the bash guide.

Y
yadeveloper, 2011-04-25
@yadeveloper

Also, in addition to learning bash, be sure to look towards sed and awk - very difficult to understand and remember at some points, but allow you to work wonders by implementing things that are unattainable in other ways.
Also, at least basicly feel make - it will also come in handy, ant is sometimes superfluous
Actually, that's all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question