All Questions

Filter by
Sorted by
Tagged with
4 votes
3 answers
627 views

Persist clipboard contents in vi

If I want to copy text from a file in vi to another file, I have to highlight the text, Control-Shift-C it, quit the first file, open the second, and then paste it via Control-Shift-V. It feels like ...
user avatar
7 votes
2 answers
3k views

Number of running processes show in top

The usual maximum number that I have seen in the "running" field displayed in top(1) is the number of logical CPUs installed in the system. However, I have observed that under Ubuntu 10.04 (not ...
user avatar
  • 173
112 votes
13 answers
43k views

What is the benefit of compiling your own linux kernel?

What benefit could I see by compiling a Linux kernel myself? Is there some efficiency you could create by customizing it to your hardware?
user avatar
  • 2,117
16 votes
2 answers
8k views

Is there a way to intercept interprocess communication in Unix/Linux?

For intercepting/analyzing network traffic, we have a utility called Wireshark. Do we have a similar utility for intercepting all the interprocess communication between any two processes in Unix/...
user avatar
  • 33k
131 votes
10 answers
543k views

Is there a way to see details of all the threads that a process has in Linux?

For Windows, I think Process Explorer shows you all the threads under a process. Is there a similar command line utility for Linux that can show me details about all the threads a particular process ...
user avatar
  • 33k
28 votes
9 answers
50k views

Ensure a process is always running

I started hosting sites a while back using Cherokee. For external sources (FastCGI, etc) it has an option to launch the process if it can't find one running on the designated socket or port. This is ...
user avatar
  • 14.9k
15 votes
3 answers
4k views

Can I limit a user (and their apps) to one network interface?

I've actually got two scenarios to apply this: Multiseat Desktop: two network connections both with internet gateways and two accounts doing bandwidth-intensive tasks on each. I want to split them up ...
user avatar
  • 14.9k
4 votes
3 answers
808 views

Something like pwgen-win for linux?

Is there some kind of pwd generator for Linux that has a nice GUI and options like this one for Windows? I know that there is pwgen, but as far as I know it does not support mouse/keyboard entropy and ...
user avatar
  • 2,288
15 votes
3 answers
6k views

the slash (/) after a directory name on shell commands

I have a little question here. If I have two files, say filea and fileb, mv filea fileb would delete fileb rename filea to fileb Then if I have two directories, say dira and dirb, mv dira dirb ...
user avatar
  • 19.4k
8 votes
4 answers
5k views

How to best encrypt and decrypt a directory via the command line or script?

I have a directory of text files under bazaar version control and keep a copy (a branch, actually) on each of my machines. I want to encrypt and unencrypt the directory via the command line. Ideally, ...
user avatar
  • 231
7 votes
2 answers
11k views

How do I add PC BSD / FreeBSD to Grub 2 boot loader?

I have Ubuntu 10.04 installed as my primary operating system, and I installed PC BSD in a different partition: /dev/sda4 without installing it's boot loader. I figured out that I need to edit /etc/...
user avatar
2 votes
1 answer
294 views

How can I figure out why gnome-panel is frequently misbehaving?

On my system (Debian Lenny AMD64), gnome-panel seems to act up now and again. I've not found a way to force it to happen, but it seems to be related to launching processes. Basically, I launch some ...
user avatar
17 votes
4 answers
1k views

Linux adoption path for a .NET developer [closed]

I am a .NET C# programmer, I love the .NET stack. I have tried Linux several times but every time I got put off as I could not do anything on it .. (like program for it or on it). Ever since Mono was ...
user avatar
  • 171
2 votes
3 answers
626 views

Weekly cron job to save list of installed packages

I am having trouble figuring out how to set up my first cron job. I simply want to run this command once every week: dpkg -l > ~/Dropbox/installed_packages My /etc/crontab file contains the line ...
user avatar
  • 3,373
12 votes
5 answers
2k views

Best way to do full disk encryption?

I have got a bit lost and am not sure which technology to choose for full disk encryption. It is hard to tell if the information out there is still up to date. Is there a current best practice ...
user avatar
  • 223
15 votes
3 answers
26k views

How to make a folder private?

I'm using Ubuntu with several users and I want to make folders viewable just for a specific user. Any idea how to do it?
user avatar
  • 151
5 votes
6 answers
6k views

Is there a (light-weight) replacement for `rxvt-unicode`?

I am currently using rxvt-unicode as a terminal emulator. Since I also like the configurability of terminal emulators from GNOME and KDE, I wonder whether there is some kind of replacement for rxvt-...
user avatar
242 votes
9 answers
173k views

How to determine where an environment variable came from?

I have a Linux instance that I set up some time ago. When I fire it up and log in as root there are some environment variables that I set up but I can't remember or find where they came from. I've ...
user avatar
  • 2,523
1 vote
1 answer
1k views

How can I call a .NET web service from PHP?

The web service could be a SOAP asmx or a WCF Service. Assumption here is that the IIS on Windows is serving the web-service and Apache on Linux with PHP 5.3 consuming it.
user avatar
  • 357
0 votes
3 answers
591 views

FreeBSD: Which branch is supported for longer?

Can someone help explain the FreeBSD support policy? I'm looking at http://security.freebsd.org/#sup , which says: Branch Release Type Release Date Estimated EoL RELENG_6 ...
user avatar
3 votes
3 answers
842 views

Updating FreeBSD 8.0 to 8.1 (methods and policy)

I have 8.0-RELEASE-p4 + few ports installed. I wonder wheather I should update to 8.1. How long is 8.0 supported? How to update the system? I couldn't find anything about it in handbook. SOLUTION (...
user avatar
376 votes
7 answers
48k views

How can I find the implementations of Linux kernel system calls?

I am trying to understand how a function, say mkdir, works by looking at the kernel source. This is an attempt to understand the kernel internals and navigate between various functions. I know mkdir ...
user avatar
15 votes
4 answers
38k views

passwordless ssh for another username?

I want to do a passwordless ssh connection for a subversion project. Right now I'm using ssh+svn, and it's a little annoying, because I have to type the password any time I want to transact with the ...
user avatar
  • 13.2k
20 votes
8 answers
16k views

What are some common tools for intrusion detection? [closed]

Please give a brief description for each tool.
user avatar
  • 2,571
18 votes
6 answers
17k views

Downsides of umask 077?

What are the cons, for having a restrictive umask of 077? A lot of distros (I believe all, except Red Hat? ) have a default umask of 022, configured in /etc/profile. This seems way too insecure for a ...
user avatar
3 votes
1 answer
3k views

Is there an XML file editor for Linux with grid view support?

I have been using Altova XML Editor on Windows for a long time. It has a wonderful feature that lets you view XML files in "grid view." This makes life easy when reading very complex XML. My question ...
user avatar
  • 6,504
2 votes
2 answers
4k views

How to set up file permissions/ownership for FTP/Apache/PHP on CentOS

I have basic understanding of chmod and CentOS file permissions. 777 stands for 111111111 and rwx for each root, group, user, etc. What I can't get my head around is setting up Apache, FTP and PHP to ...
user avatar
3 votes
3 answers
2k views

Are there rc logs in arch?

One of my processes is failing to start fairly early in the boot process (I suspect mdadm and I suspect that it's just taking longer than the rc script allows for) but I can't quite catch/see it ...
user avatar
270 votes
10 answers
120k views

What is the real difference between "apt-get" and "aptitude"? (How about "wajig"?)

I know that both apt-get and aptitude are command line package management interfaces on Debian derived Linux, with different options, but I'm still somewhat confused. Under the hood, aren't they ...
user avatar
  • 3,634
3 votes
1 answer
372 views

Learning about iptables: Is this Slicehost example any good?

In preparation to eventually launch my first website, I've been playing with Ubuntu Lucid Server in a VM on my WinXP machine. I've been alternating between the Linode and Slicehost tutorials/articles ...
user avatar
14 votes
3 answers
4k views

What does it mean when code is executed in [kernel|user] mode?

What does it mean when code is executed in kernel or user mode?
user avatar
  • 3,655
48 votes
9 answers
7k views

How could I remember how to use redirection?

I know what program > /dev/null 2>&1 does. It redirects the output to /dev/null and 2>&1 means to redirect the error output in the same place where the output is sent. My ...
8 votes
9 answers
621 views

What is/are the standard CLI program(s) to manage users and groups?

I'm basically asking about user management from the command line (e.g. on a system where there are no graphical tools available). In the past I've used several different programs to add or delete ...
user avatar
  • 895
20 votes
7 answers
20k views

What distributions have rolling releases? [closed]

I was browsing DistroWatch and was looking for a list of distributions that offer rolling releases and a little bit more about them. However, it doesn't seem to be possible to select only the rolling ...
52 votes
7 answers
19k views

Software developer switching from Linux to OS X, what are the gotchas?

I have used Ubuntu/Fedora/Red Hat/Suse but haven't used OS X at all. If I have to start using OS X regularly, what are the things I should look out for? Tools I use are GNU tool chain, C++/Boost, etc....
65 votes
8 answers
89k views

Can we get compiler information from an elf binary?

Is there some chance to know how a binary was built, under Linux? (and or other Unix) Compiler, version, time, flags etc... I looked at readelf and couldn't find much, but there might be other ways ...
user avatar
  • 1,414
0 votes
3 answers
3k views

How can I (and should I) use my Linux file server as a Time Machine backup server for my Macs?

I have two Macs that I'd like to start backing up using Time Machine, but all of my storage is attached to my Linux file server. How can I use my Linux file server (which happens to be running Ubuntu ...
user avatar
  • 3,171
9 votes
1 answer
5k views

How do I get a long listing for a single directory?

I want to see a long listing for a single directory. When I type ls -lha, I see this: drwxrwxr-x 4 username groupname 4.0K 2010-08-05 09:55 files drwxrwxr-x 7 username groupname 4.0K 2010-08-05 14:...
user avatar
  • 13.2k
43 votes
3 answers
29k views

Where does Mac OS X come from?

Discussing with Mac owners, I got several versions of where Mac OS X comes from. It is known to have some root in BSD, but how much, and where? Some say that Mac OS X has a FreeBSD kernel, with all ...
user avatar
4 votes
3 answers
474 views

Any alternative of "man -a" on UNIX?

man -a <xyz> opens all the man pages one by one which contain xyz. On my unix servers man -a <xyz> doesn't work. Is there any alternative for this on unix? EDIT: I am on HP-UX. Following ...
user avatar
  • 6,504
63 votes
10 answers
68k views

Why put things other than /home to a separate partition?

So recently a Debian 5.0.5 installer offered me to have separate /usr, /home, /var and /tmp partitions (on one physical disk). What is the practical reason for this? I understand that /home can be ...
user avatar
  • 4,258
8 votes
5 answers
18k views

'kill java' doesn't kill java

I am running debian right now and sometimes I need to kill java manually from the terminal, but when I try kill #pid# or pkill java nothing happens. No console output (ok, that's normal) and java is ...
user avatar
  • 183
37 votes
6 answers
17k views

How does a unix or linux system work? [closed]

I would like to know how the OS works in a nutshell: The basic components it's built upon How those components work together What makes unix UNIX What makes it so different from other OSs like ...
user avatar
9 votes
5 answers
6k views

vim on FreeBSD does not react on arrow keys correctly and other vi-like behaviours

I tried to use vim on FreeBSD (via ssh on Linux xterm-compatible terminal). However vim behaves similar to vi out-of-box. For example it does not react on delete key, insert F character instead of ...
user avatar
5 votes
1 answer
426 views

Strings enclosed in '' are ignored when using grep

When I tried searching for a string within a file, the results didn't include those that were enclosed in single quotes. For example: grep -rn text folder/ The results didn't include strings the ...
user avatar
6 votes
1 answer
5k views

What is the easiest way to boot Linux from a USB drive on Intel Mac?

I would like to boot an Intel Mac from Linux on an external USB drive. Right now, I have install rEFIt and use grub on the internal hard disc to boot the external drive. That seems pretty complicated. ...
user avatar
  • 79
27 votes
9 answers
6k views

Year 2038 problem [closed]

What is the likelihood of the Year 2038 issue being very problematic?
user avatar
  • 405
30 votes
4 answers
58k views

Installing Grub 2 on a USB flash drive

MultiBootISOs is a tool that let you install Grub on a USB flash drive. I really like it because it lets me boot from ISO files and let me put a bunch of ISOs on my USB and choose which one to boot. ...
user avatar
  • 19.4k
228 votes
11 answers
578k views

linux: How can I view all UUIDs for all available disks on my system?

My /etc/fstab contains this: # / was on /dev/sda1 during installation UUID=77d8da74-a690-481a-86d5-9beab5a8e842 / ext4 errors=remount-ro 0 1 There are several other disks on ...
user avatar
19 votes
5 answers
939 views

rolling diffs for storage of highly similar files?

At work we do a nightly dump of our mysql databases. From day to day, I would guestimate that close to 90-95% of the data is duplicate, increasing as time goes on. ( Heck at this point some are ...
user avatar
  • 13.2k

15 30 50 per page