37
votes
4answers
5k views

Is there any way to keep a command from being added to your history?

Is there any way to keep a command from being added to your history? I have a command that I want to keep out of my history file, and I really don't care to have it there when I search the history ...
5
votes
2answers
5k views

How to combine bash command grouping and pipe status

How do I combine bash command grouping and pipe status? This is an example command group: { tar -cf - my_folder 2>&1 1>&3 | grep -v "Removing leading" 1>&2; } 3>&1 | gzip ...
4
votes
5answers
406 views

How do idiomatic Unix programs detect what prefix they are installed under?

If I install a binary with non-standard prefix, e.g. /opt/bin/foo, which needs some static files from /opt/share/foo, how does it find them? Using back references relative to the executable ...
2
votes
2answers
966 views

Simple terminal emulator that supports cut/paste with other programs?

Coming from Mac OS X, I've enjoyed being able to cut/copy/paste text to and from its built in Terminal application. Now, I am planning to migrate to a tiling window manager like scrotwm, xmonad, ...
3
votes
1answer
2k views

Automatically mount encrypted home folder on login

I'm looking into encrypting my home folder with Truecrypt, and mounting it after I've logged in, which should be pretty straightforward. However, it occurred to me that it should be theoretically ...
3
votes
2answers
2k views

Encode directory with GnuPG

Is there any way to encrypt the whole directory using gpg? It accepts only file as input argument. But I need to encrypt a lot of files on external HDD.
13
votes
4answers
3k views

Is it possible to find out what program or script created a given file?

Three files have suddenly appeared in my home directory, called "client_state.xml", "lockfile", and "time_stats_log". The last two are empty. I'm wondering how they got there. It's not the first time ...
2
votes
3answers
3k views

Selecting files that start with $LETTER, or a letter later than $LETTER in the alphabet

Suppose a directory contains the following files: afile1 afile2 bfile cfile ffile ffile2 qfile zfile I am looking for an easy way of selecting all the files which start with $LETTER, or start with ...
16
votes
2answers
6k views

GNU Screen: new window name change

I can change the name of a window with Ctrl-a Shift-a. Instead of editing several window names by hand, is there a way to have them automatically named after the current directory?
3
votes
4answers
551 views

How can I turn the behavior of `gedit sOmEtHiNg & disown` into the default behavior when calling gedit from the command line?

When I gedit files from the command line, it's always locking the terminal, and I'm tired of explicitly commanding a detached process for it. I tried to alias gedit as something like gedit $* & ...
14
votes
3answers
8k views

Is it possible to stop a shutdown command?

Assuming you've just entered the command shutdown -h now (or something equivalent), is there realistically anything you can do (if you're quick enough) to prevent the machine shutting down?
4
votes
1answer
1k views

Running several commands in a screen-split

I have a few long running commands that I would like to run together in the same screen (same tab in the terminal app). My current setup is like this: tmux new-session -d 'cmd1' tmux split-window ...
4
votes
1answer
844 views

Where can I find a log file that logs ports error messages in FreeBSD?

I looked in /var/log/ but there isn't any log files that records ports log, and I just found this person asking the same thing in other forum and get an answer which stating there is no such file. If ...
1
vote
7answers
1k views

What distro for an old HP (Celeron/384MB)

An old HP desktop just came my way for service. Was running XP, but the install is trashed. User would like to switch to Linux, but the box it's only a 950mhz Celeron with 384MB RAM. It does have a ...
19
votes
2answers
10k views

Upstart on Debian?

I created an upstart script in Ubuntu, thinking it would be the same for Debian. But Debian doesn't have a /etc/init folder that Ubuntu has. I went to the upstart download page and seeing that they ...
29
votes
6answers
3k views

When do you use brace expansion?

I understand what brace expansion is, but I don't know how best to use it. When do you use it? Please teach me some convenient and remarkable examples if you have your own tip.
5
votes
1answer
1k views

Usage of inb, inl, inw to access kernel space from user space

What are some user space examples of using inb, inl, and inw to access kernel space in Linux?
2
votes
2answers
2k views

Track [sh] <defunct> for debug purposes?

I have a big application (in C++), which generates from time to time defunct process. I know the application intensively uses linux commands inside. I would need to know which linux commands were ...
1
vote
1answer
353 views

ssh problems only when connecting from remote IP

When I try to connect from a remote computer that is not in the local network via ssh I get into trouble... When I try to execute a TUI application it hangs and I cant do anything... I type ./menu ...
3
votes
2answers
1k views

How can I make Flash fullscreen on an external display?

The question is: I have a laptop, and I extend my desktop on external display, so I get a wide desktop (3200px). When I make the videos on flash fullscreen, don't know why, but the fullscreen appears ...
4
votes
3answers
2k views

How to rename a file into a random GUID?

The task is to replace a file's (actually of all the files in a directory) name (but leave extension intact) with a random UUID/GUID. Any ideas on how to do this?
6
votes
2answers
2k views

Colored man pages not working on gentoo

I have a problem using these methods to get colors in my man pages in gentoo. I've asked already in the gentoo forums but it still doesn't work, and the comments in a bug report (Bug 184604) don't ...
4
votes
2answers
4k views

How to install Python 3.x on Debian?

Being new to Linux, I chose Debian for my Linode because it seemed stable and secure. Now I want to write some sysadmin-type scripts in Python to teach myself the language. Based on this SO question ...
5
votes
2answers
11k views

Get the free space available in current directory in Bash

I know df -h and pwd, but it seems a little complex for the regex matching part. Any ideas?
1
vote
1answer
398 views

Linux: Interface/control 3.5 mm Headphone or Microphone port? [closed]

This might sound crazy, but bear with me ;) I am making a DIY camera trigger, and I would like to see if I can trigger it remotely by plugging it into my Microphone or Headphone ports. It's a basic ...
3
votes
1answer
913 views

A tool for checking broken web links

Please recommend a tool that checks for broken links on a web site. not required, but would be nice to have: checks standards-compliance of the HTML, CSS, Javascript, ... displays permanent ...
1
vote
1answer
157 views

Problem making a virtual host with apache

Once i tried to make a virtual host, and the problem was that if i make another file in /etc/apache2/sites-available/ that says ... DocumentRoot /var/www/newsite ServerName newsite ... Then save ...
2
votes
2answers
2k views

What are pros/cons of dselect and apt-get?

I hardly ever hear anyone mention dselect, a deprecated package management front-end for Debian. Considering that it still exists as part of dpkg source, it must still have its uses. What are those? ...
17
votes
4answers
6k views

Setting the window dimensions of a running application

I'm trying to start an application within Ubuntu (xfce or gnome) and via the command line and was wondering if there's a generic way to set the dimensions of a given window of a given app that is ...
10
votes
2answers
6k views

How do I bind to Shift+{Left,Right} in tmux?

I'm looking at tmux from screen, and have hit a bump while configuring the (highly configurable!) tmux key bindings. Problem is, in my .screenrc I have bindkey ^[[d prev bindkey ^[[c next bindkey ...
3
votes
1answer
1k views

Adding kill to a sudoers group

How can I give permissions in sudoers such that each member of a group is able to kill the process owned by another member of the group? Scenario: I have two users -- bill and dev-cron -- who are ...
4
votes
1answer
2k views

Share Internet connection from a Debian laptop to a FreeBSD desktop

I have this situation: My Debian laptop is connected to the Internet via its wlan interface through my wireless router. Recently I decided to install FreeBSD on a very old machine (a celeron 300Mhz) ...
3
votes
2answers
1k views

automatically load shell scripts from /usr/bin

Is there a way to have bash automatically load shell scripts I create and place into /usr/bin? Or is there a different place I should put custom shell scripts so that they are automatically loaded? ...
4
votes
1answer
941 views

How can I check the charge of an Apple iPod Shuffle?

I am using Ubuntu and would like to know the answer to this question: How does one determine whether his/her Apple iPod Shuffle's charge is full in Linux? In Windows it's easy since iTunes shows ...
3
votes
1answer
265 views

How to control the list of locales which are generated by APT?

Each time I install or operate in other means l10n-related packages, the APT system "rebuilds" a lot of English locales, which takes considerable time. Look at the APT log: Configuring ...
5
votes
3answers
188 views

What tools to use to eliminate metadata in graphics files?

What tools can I use to delete all the EXIF, IPTC, XMP, etc metadata from graphics files?
8
votes
3answers
7k views

How do I insert a space every four characters in a long line?

I've got a long line that I want to insert a space every 4 characters, on a single lone line of solid text to make it easier to read, what's the simplest way to do this? also I should be able to input ...
2
votes
2answers
571 views

Resources to learn linux architecture in detail? [closed]

I want to learn the Linux file hierarchy and how the OS works at a deeper level. Are there any ebooks or webpages to learn that?
5
votes
2answers
561 views

Export from KWD (old KWord/KOffice document format) to anything else

I've got 75 documents in KWD format, from my old days using KDE 3.x. I'd like to convert them to ODT or RTF, so I can edit them with Open Office, Abiword or the newer KWord, but I haven't found a ...
1
vote
4answers
467 views

suse cannot install software

I just installed suse 11.3, but cannot update the system. Update Applet says: PackageKit Error repo-not-available: Failed to download /media.1/media from ...
19
votes
3answers
23k views

How can I pause/resume rsync

How can I pause an rsync that's running? First time I did Ctrl+C to kill it and used the -P flag to run again. Is this prone to corrupt the current file transfer? Second time I simply put MacOS to ...
4
votes
1answer
2k views

Internet(ADSL) connection doesn't seem to be working on Arch

I've already set up ADSL and used it already for a system update, so I'm sure the set up is ok but pacman suddenly stopped working and when I checked ping wasn't working too. How can I find out what ...
2
votes
2answers
433 views

stop pipe() opening stdin

I've currently got code that forks two processes. The first reads a http streaming radio and pushes the data down a pipe (opened with pipe() ) for the second process to read, decode and output to the ...
7
votes
6answers
3k views

Small apt based linux

I want to setup some VMs running as small a Linux as I can. The criteria: Package system based on Apt. Runs some GUI ( can be very small ). Runs in as little ram as possible: in this context 64M is ...
9
votes
1answer
689 views

Is there any env variable to turn --color (and the like) on for all commands?

I do use aliases to turn on color for some commands by default. But I'm wondering if there's an easier way at telling my system, color is supported, don't make me use --color for grep, ls, etc.
0
votes
1answer
2k views

Filesystem type is ext2fs, partition type 0x83

I installed Ubuntu 10.04 (LTS) to a VPS server I'm renting and get this critical error when booting: Filesystem type is ext2fs, partition type 0x83 This prevents the rest of the boot process to ...
6
votes
2answers
2k views

Can I set my local machine's terminal colors to use those of the machine I ssh into?

I have a color scheme that I like for when I'm in a terminal, but I ssh into the machine I work on from multiple sources (locally, PuTTY, my netbook, etc.) and I want to maintain the same color scheme ...
3
votes
3answers
717 views

For what purpose would perl* be excluded in yum.conf?

I am not an Unix/Linux admin. I was attempting to install git on our server, and after much googling and trial and error, I discovered that perl* is excluded in our yum.conf file, preventing perl-Git ...
3
votes
2answers
414 views

pacman and powerpill not working

Both pacman and powerpill don't seem to be working on my Arch installation. I'm sure my Internet connection is working. The download just starts in powerpill but speed remains zero. In pacman, there's ...
3
votes
10answers
4k views

Is there a scripting language with C-like syntax?

I can neither code Bash nor Python (actually, I am only comfortable with C-like syntax), and, actually, am too busy and lazy to learn them now. But I would like to script some tasks. Is there a ...

15 30 50 per page