0
votes
0
comments
1,521
views

Setting up FTP on Amazon Cloud Server

0 votes, 0.00 avg. rating (0% score)
I am trying to set up FTP on Amazon Cloud Server, but without luck… I search over net and there is no concrete steps how to do it… Since there is no steps on web, can someone help me finding it or write it here? I usually use dedicated server or shared hosting, but I […]
0
votes
0
comments
2,412
views

How to can i log all commands typed in a Bash shell?

0 votes, 0.00 avg. rating (0% score)
Our small company runs an Ubuntu Server 11.10, to which a couple of people have SSH access. The actual terminals are sometimes used, too. How can we locally log all Bash commands run, along with user and time stamp? We can assume that no-one is nefarious and actively trying to avoid the logging, but we’d […]
0
votes
0
comments
1,940
views

Why use Chef/Puppet over shell scripts?

0 votes, 0.00 avg. rating (0% score)
New to Puppet and Chef tools. Seems like the job that they are doing can be done with shell scripting. Maybe it was done in shell scripts until these came along. I would agree they are more readable. But, are there any other advantages over shell scripts besides just being readable? Totor A domain-specific language […]
0
votes
0
comments
1,622
views

Puppet agent can’t find server

0 votes, 0.00 avg. rating (0% score)
I’m new to puppet, but picking it up quickly. Today, I’m running into an issue when trying to run the following: It would appear the agent doesn’t know what server to connect to. I could just specify --server on the command line, but that will be of no use to me when this runs as […]
0
votes
0
comments
40,408
views

regular expression to allow spaces between words

0 votes, 0.00 avg. rating (0% score)
I want a regular expression that prevents symbols and only allows letters and numbers. This regex works great but it doesn’t allow for spaces between words. ^[a-zA-Z0-9_]*$ For example, when using this regular expression “HelloWorld” is fine but “Hello World” does not match. How can I tweak it to allow spaces?
0
votes
0
comments
1,235
views

grep files from list

0 votes, 0.00 avg. rating (0% score)
I am trying to run grep against a list of a few hundred files: $ head -n 3 <(cat files.txt) admin.php ajax/accept.php ajax/add_note.php However, even though I am grepping for a string that I know is found in the files, the following does not search the files: $ grep -i 'foo' <(cat files.txt) $ grep […]
0
votes
0
comments
1,226
views

grep inside less?

0 votes, 0.00 avg. rating (0% score)
I’m currently sifting through a lot of unfamiliar logs looking for some issues. The first file I look at is Events.log, and I get at least three pages in less which appear to display the same event at different times – an event that appears to be fairly benign. I would like to filter this […]
0
votes
0
comments
621
views

volcopy for Linux?

0 votes, 0.00 avg. rating (0% score)
Reading one of the editions of the Nemeth’s book (Nemeth et al), have read about volcopy — an utility that copies a filesystem from one device to another, making “a literal copy” (here’s a man page, though not too helpful). The Book said the utility exists for Linux, but quick googlin’ didn’t show many results. […]
0
votes
0
comments
690
views

List the number of lines in files

0 votes, 0.00 avg. rating (0% score)
How can I list the number of lines in the files in /group/book/four/word, sorted by the number of lines they contain? “ls -l” command lists them down but does not sort them terdon You should use a command like this: find /group/book/four/word/ -type f -exec wc -l {} + | sort -rn find : search […]
1
votes
0
comments
5,433
views

Important scripts useful for a Linux system administrator

1 vote, 1.00 avg. rating (20% score)
I am a Linux system administrator and constantly find myself doing the same chores again and again. I need some scripts to make life easier. What are the most important scripts needed by a Linux system administrator? Ramesh While all the scripts provided below may be accurate, there may be much more advanced features available. […]