7
votes
2answers
1k views

How do I redefine a bash function in terms of old definition?

Is there any way I can redefine a bash function in terms of its old definition? For example I would like to add the following block of code to the preamble of the function command_not_found_handle (), ...
2
votes
1answer
2k views

Nginx Configuration - Cache headers on certain paths

From my understanding of nginx docs, locations can't be nested (or rather if they are the effects aren't inheritable) and proxy_pass can't belong at the server {} level. So my configuration at the ...
2
votes
2answers
3k views

Issues of using sort and comm

I was trying to find the intersection of two plain data files, and found from a previous post that it can be done through comm -12 <(sort test1.list) < (sort test2.list) It seems to me that ...
3
votes
1answer
811 views

libstdc++.so.3 => not found on CloudLinux, no SuperUser permissions, seemingly in chroot.

I am trying to install the Linux x64 BOINC command-line interface client on a CloudLinux machine with x86_64 Architecture. When I try to run the executable I get an error: ./boinc: error while ...
6
votes
4answers
6k views

How can I convert a .cue / .bin ( with cdr tracks) image into a single .iso file?

The title is descriptive as is: How can I convert a .cue / .bin (cdr track) image into a single .iso file? I have Fedora 16 (x86-64) Linux 3.1.9-1.fc16.x86_64 #1 SMP Fri Jan 13 16:37:42 UTC 2012 ...
6
votes
1answer
1k views

Move /usr to SSD

I have an SSD and regular HDD drive in my laptop. The SSD drive is not used at all; it is not even being mounted. I am using Arch Linux. I'd like to start using the SSD, and from what I have read I ...
7
votes
1answer
201 views

Strange behaviour in recursive copy

Could someone explain why this happens? Most specifically: Why is one 1's content copied to f? And why is f copied to g? $ tree . 0 directories, 0 files $ mkdir 1 $ mkdir 2 $ touch 1/a $ touch ...
7
votes
1answer
1k views

In vim, how to map “command-right” and “command-left” to beginning of line and end of line on mac?

I'm trying to get it to be like default text editing in Mac. I tried map! <D-Left> 0 and map! <D-Right> $ in ~/.vimrc, but of course it didn't work. How can i do this?
7
votes
2answers
405 views

Continue shell commands once connected to SSH

Not sure if the question I'm asking is correct but basically I wanted to automate this process scp ~/.ssh/id_rsa.pub username@example.com:~/ ssh username@example.com mkdir .ssh cat id_rsa.pub ...
1
vote
1answer
2k views

XDG user directories

After installing Linux Mint Debian edition my .config/user-dirs.dirs looks like this: # This file is written by xdg-user-dirs-update # If you want to change or add directories, just edit the line ...
4
votes
1answer
941 views

What does GNOME do with multimedia keys?

GNOME makes multimedia keys, such as fn+directional keys on my laptop, maybe dedicated keys on your keyboard, into very useful keys. They seem to work with a large number of application. What can I do ...
1
vote
2answers
1k views

List installed meta packages in APT

Meta packages are packages that do not install anything by themselfs, but are dependent on other packages. How do I list the installed meta packages on my system?
11
votes
3answers
3k views

List (recursive) dependencies of the installed packages in APT

For each package I have installed I would like to know which packages would be installed if I uninstall it. An example of the output I need is (package: list of deps): abc: foo bar bcd: baz abc bdd: ...
23
votes
5answers
3k views

Is CTRL+C incorrect to use to return to command line?

When I'm using tail -f and I want to return to the shell, I always use CTRL+C. Or when I am typing a command and feel like aborting it and starting over, I simply CTRL+C to get back to an empty ...
7
votes
1answer
706 views

Block a package from being uninstalled in APT

In short, I want to be able to set package abc so that: apt-get remove abc should fail. apt-get purge abc should fail. apt-get upgrade abc should work. If the package dependencies change so that ...
6
votes
2answers
893 views

Make all SELinux contexts permanent

I've done a lot of chcon-ing lately,but if I understand it correctly, these will be erased on the next relabel. Is there any way to make the current contexts (preferably just under a certain ...
-1
votes
2answers
721 views

Downloading DeviantArt : Favourites, Groups, Gallery…

Is there any command-line Linux tool for downloading user favourites (including subfolders), selected users galleries, groups ? (Preferably with ability to run in incremental mode, to update rip from ...
3
votes
2answers
1k views

Installation on debian 5 32-bit without being a root

I am new to Linux and I am trying to install Skype and Google Chrome on my desktop. It runs Debian 5 32-bit. I downloaded the packages from the web but I have no idea how to install them. I have ...
0
votes
1answer
698 views

Every time I run Azureus it wants to restart because of an upgrade

I am using Fedora 16. Every time I run Azureus, it says that it just completed an important update and needs to restart. How can I fix this? Obviously restarting it is not helping.
3
votes
2answers
3k views

How do I shut down a system through a ConsoleKit DBus message as user?

I found the following command line to shut down a Debian/GNU Linux system dbus-send \ --system \ --dest=org.freedesktop.ConsoleKit \ --type=method_call \ --print-reply \ ...
6
votes
3answers
890 views

How do I find installed packages that have no install candidate?

I'd like to retrieve a list of installed packages that have no install candidate (e.g., because I removed an apt source file entry). How would I do that on Debian-based systems?
1
vote
2answers
504 views

cp does not copy new files of source location (files created after firing cp command)

I am using the following command to copy contents from a source directory to a destination directory: cp src/* dest However, after evoking this command and while when contents are getting copied, ...
15
votes
11answers
13k views

Grep huge number of patterns from huge file

I have a file that's growing about 200,000 lines a day, and it is all formed with blocks of three lines as such: 1358726575123 # key Joseph Brunner # name carpenter # job ...
4
votes
1answer
663 views

Moving Fedora to another computer

I have Fedora 16 - based server (file, MySQL, Web, SVN) that I am going to replace with a bigger machine. I plan to reinstall Fedora from scratch (with the help of rpm -qa). I am concerned that I am ...
6
votes
1answer
378 views

Interactive tree command

Is there any version of tree command that displays file structure as a tree structure, but in a way that I can interactively walk trough? Why do I need it exactly - I am trying to simulate TextMate ...
96
votes
7answers
22k views

Why is it better to use “#!/usr/bin/env NAME” instead of “#!/path/to/NAME” as my shebang?

I notice that some scripts which I have acquired from others have the shebang #!/path/to/NAME while others (using the same tool, NAME) have the shebang #!/usr/bin/env NAME. Both seem to work ...
5
votes
2answers
136 views

Decrypt several password-pdf-protected files

I tried this command but I think something is wrong with '{}' '{}'. By the latter, I want InputXYZ.pdf OutputXYZ.pdf (I do not want any dupe files, I want to replace the old files to make reading a ...
10
votes
1answer
509 views

How do I 'unbook' a pdf

I have a pdf file that was made into a booklet format. It is meant to print on A4 paper in landscape orientation; here are two pages in the pdf, which should correspond to four pages in the actual ...
4
votes
3answers
177 views

Using apt or aptitude to get version information about an uninstalled package?

I'm looking to install a package, but I'd like to make sure that I can't get a more recent version than, e.g., a PPA. Is there an aptitude or apt-get command that will enable me to input a package ...
7
votes
2answers
2k views

Is a symbolic/soft link similar to a shortcut/alias on a desktop?

It sounds to me like the basic idea of soft/symbolic links compared to shortcuts (on a PC) or aliases (on a Mac) are the same thing. Am I way off? Are they similar?
2
votes
0answers
256 views

virtual network interface for ShrewSoft VPN Client

I use ShrewSoft VPN Client 2.1.7 under Arch Linux (i686) to connect to the company network using IPSec. It is configured by a .vpn file. How can I make it create a virtual network interface?
3
votes
1answer
896 views

Running Plasmoid under NOTKDE (e.g. Fluxbox) - Plasma/DeviceNotifier

Is there way to run Plasma/DeviceNotifier under another WM to KWin/KDE (e.g. Fluxbox). To be more specific, I have currently configured KDE, but I work remotely thorough SSH -Y + X-forwarding. So ...
2
votes
1answer
1k views

How does one remove items from the menu plugin on LXPanel?

How does one remove items from the menu plugin on the panel? I am using lubuntu 11.10, LXPanel 0.5.8.
7
votes
5answers
1k views

Run entire OS from flash drive

I am looking for a distribution that can run the entire OS from a flash drive. This question is NOT about being simply able to boot and/or run OS from a USB stick: what I am looking for is a ...
2
votes
3answers
726 views

How to create a VirtualBox HDD?

I need to have a file on a VirtualBox guest's HDD. What are the solutions for this? How can I put a file on a Virtualbox guest's HDD? Version: virtualbox-4.1 4.1.8-75467~Ubuntu~lucid I mean I need a ...
25
votes
1answer
7k views

How can I execute `date` inside of a cron tab job?

I want to create a log file for a cron script that has the current hour in the log file name. This is the command I tried to use: 0 * * * * echo hello >> ~/cron-logs/hourly/test`date "+%d"`.log ...
30
votes
1answer
27k views

ulimit: difference between hard and soft limits

What is the difference between hard and soft limits in ulimit? For number of open files, I have a soft limit of 1024 and a hard limit of 10240. It is possible to run programs opening more than 1024 ...
11
votes
1answer
7k views

Difference between gawk vs. awk

Trying to understand the differences between the two functions gawk vs. awk? When would one use gawk vs awk? Or are they the same in terms of usage? Also, could one provide an example?
16
votes
1answer
20k views

How can I set up logrotate to rotate logs hourly?

According the the Unix and Linux Administration Handbook and man, logrotate has options for daily, weekly, and monthly, but is there a way to add an hourly option? This blog post mentions you can set ...
87
votes
7answers
129k views

How do I remove a user from a group?

Which command should I use to remove a user from a group in Debian? When adding a user to a group, it can be done with: usermod -a -G group user However, I could not find a similar command ...
5
votes
6answers
7k views

Configure reboot on Linux kernel panic

You can put "panic=N" on the kernel command line to make the system reboot N seconds after a panic. Is there a config option to specify this (other than the default kernel command line option)?
5
votes
3answers
650 views

Bash globbing of multi-part argument

Below are some examples of a find command I'm trying to run. I'm looking for different ways that I might be able to use globbing to generate (as an example) a find command with predicates joined ...
6
votes
3answers
430 views

How can I tunnel traffic for a NATted host to another server?

I have a device on my private network which I don't wish to allow to directly access the internet from my gateway. Instead, I want to tunnel that traffic from my gateway to another server (also mine) ...
4
votes
1answer
2k views

How to fix zramswap error?

I installed zramswap-enabler on Ubuntu 11.10 using the ppa but when installing programs or running system upgrades I get this error: Setting up zramswap-enabler (0.2.1-0~12~oneiric1) ... start: Job ...
3
votes
2answers
455 views

Capturing new output after deleting the output file

I'm runnig a java server on Debian with this command: java -jar myapp.jar [args] >> log.txt Once I gzipped the log file to send it and then I realized the original file was gone, leaving me ...
4
votes
2answers
43k views

pdksh missing from RHEL 6 and CentOS 6?

The package pdksh does not exist on RHEL 6 or CentOS 6 when I try to install it through yum. So my questions: Why is it no longer available in the default repositories? It is available in version ...
2
votes
1answer
380 views

Linux Router Load Benchmark

What tools and methods can be used to stress test a Linux-based router/proxy? On the router Squid, Apache Modproxy and Privoxy are installed. The purpose of the stress test is to determine which proxy ...
8
votes
2answers
4k views

Group member cannot write even with write permission

The logged in user is a member of a group that has a write permission on a folder. But when this user is trying to write something, "permission is denied". The log below summarizes the question: ...
2
votes
2answers
1k views

Convert a lot of .tif files using imagemagick's mogrify command

I have a lot of tif images in a directory. So I try to convert them into jpg format. I use this command : mogrify -format jpg *.tif But I get an error... an error for each image in fact: mogrify: ...
4
votes
3answers
416 views

Number of X screens corresponding to number of “Screen” sections in xorg.conf file for multi-monitor configuration

I want to set up a multi-monitor configuration where two "landscape" oriented monitors one above the other and two "portrait" oriented monitors one right of the other combine into a single large ...

15 30 50 per page