3
votes
3answers
429 views

Mac Terminal - moving files

I am trying to use Mac Terminal command to move files to a new location. I have a list of almost 2000 filenames with full paths in a text file. (All of them are in one parent directory, but ...
4
votes
0answers
23 views

Forward Autocorrect to a script [duplicate]

Possible Duplicate: How do I get bash completion for command aliases? I wrote a series of scripts to make package management a little more intuitive for me. However, I can no longer tab ...
2
votes
3answers
23k views

Grep command to find files containing text string and move them

I am able to locate files in a folder containing a specific text string using this command: grep -lir 'string' ~/directory/* How do I move the files that appear in the above result to another ...
2
votes
2answers
233 views

How do I rename multiple files [duplicate]

Possible Duplicate: How can I rename a lot of files using a regex? I've got some files named abc-10.5.3.1-1.x86_64.rpm abc-compiler-10.5.3.1-1.x86_64.rpm abc-10.5.3.1-6.x86_64.rpm ...
0
votes
1answer
64 views

how does this work in awk even without print?

bash-3.00# cat > b1.txt AAA,Apples,123 BBB,Bananas,124 CCC,Carrot,125 bash-3.00# cat > b2.txt Store1|AAA|123|11 Store2|BBB|124|23 Store3|CCC|125|57 Store4|DDD|126|38 bash-3.00# awk -F"[,|]" ...
2
votes
1answer
3k views

Gnome 3 “broken” after upgrades, kind of looks like gnome 2 . . .?

I'm running debian wheezy ( testing ) and after some upgrades my gnome 3 is broken. It's not exactly broken, but it's completey different. Almost like it's no longer actually gnome 3; most of the UI ...
2
votes
1answer
446 views

Display 'PRI' and 'NI' via 'top -stats'

I'm trying to create a script that prints top stat for some specific fields (e.g. pid, command, priority, nice value). I can print most of them by using -stats option, but there is no arg for ni and ...
1
vote
1answer
534 views

How do associative arrays work?

bash-3.00# cat iplogs.txt 180607 093423 123.12.23.122 133 180607 121234 125.25.45.221 153 190607 084849 202.178.23.4 44 190607 084859 164.78.22.64 12 200607 012312 202.188.3.2 13 ...
0
votes
1answer
99 views

Why's my Evolution setup screen blank?

Trying to run Evolution on openSuSE 12.1 without success. It starts up (eventually, super slow even on this pretty beefy box) and gives me a window with "Evolution Setup Assistant" on the title bar ...
0
votes
1answer
1k views

How to vgscan in RHEL 5.8 rescue mode?

I want to increase the journaling size of an EXT3 FS: /var. I booted up a RHEL 5.8 DVD, and tried the "linux rescue" mode. The problem is that the original install that has the mentioned /var FS is ...
3
votes
2answers
2k views

What is the process `sendmail`?

When I type top commond, I see many sendmail, what are these sendmail? I never set mail in my service. SER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 16110 root 17 0 234m 35m ...
6
votes
1answer
3k views

Tracking down “missing” memory usage in linux

On an Arch 3.6.7 x86_64 kernel I am trying to account for the memory usage of the system, which the more I look at it, the more there appears to be a hole (in the accounting of used memory, a non-hole ...
2
votes
1answer
2k views

Why the behavior of while loop and for loop is different?

I am trying to read user and server details from file tempo.txt and then check the disk space usage of the file system on that unix account using another script server_disk_space.sh.But I am not able ...
2
votes
1answer
686 views

Can i update my commands( like awk,sed) to the latest release in solaris?

bash-3.00# awk '{print NR}' f1.txt 1 2 3 4 but FNR does not print anything. awk '{print FNR}' f1.txt the above line does not gives me any output,seems that the awk that i am having in my ...
5
votes
1answer
819 views

emacs --daemon crashing after closing emacsclient -c

I start emacs daemon with the following commnad. $ emacs --daemon This seems to work. After this I start emacs client as follows $ emacsclient -c Whenever I close the emacsclient, the server ...
1
vote
0answers
205 views

How to change Chrome icon in the Message Tray

I want the Chrome icon in the message tray to be bigger. Where is the icon file located?
1
vote
0answers
38 views

Modify environment variable in a running process [duplicate]

Possible Duplicate: change environment of a running process Is there a trick to modify an environment variable in a running process? I need to add a repository at the end of PATH. I have ...
3
votes
1answer
328 views

Why is not every variable initialized to its data type specific default value upon declaration in Bash?

When I execute the following code in Bash version "GNU bash, version 4.1.10(4)-release (i686-pc-cygwin)", I get: declare a declare -p a # Output: -bash: declare: a: not found declare -i b declare -p ...
0
votes
1answer
205 views

Debian 2.6.32-5-amd64 I have all torrents client use only 100 MB speed but I have worked 1 GB

I have server in local network and i have problem with local speed. On this server I put deluged 1.2.3 opentracker. So when users download torrent for all peers availeble speed is 100 mb, but if in ...
1
vote
1answer
474 views

Vuescan Application

I have Kodak i1120 document scanner. Driver is available for windows only. But an application named Vuescan managed to run it on Linux ( tried on Ubuntu 11.10 and 10.04 ). How they had managed to do ...
1
vote
3answers
6k views

How to run the most recent command on AIX?

How can I run the most recent command again from history in AIX Server? And how to edit the most recent command and run it again in AIX?
0
votes
4answers
782 views

securing SSH and disabling direct root

In these instructions below what appears on my terminal is different so not sure what I should change. After port 22 mine says #AddressFamily any and further down for protocol it has longer line ...
2
votes
1answer
191 views

No /proc/sys/fs/binfmt_misc/CLR on my system?

I run docky which is programmed with mono so I think the binfmt is running correctly, but proc-sys-fs-binfmt_misc.automount complains about it, since I don't have /proc/sys/fs/binfmt_misc/CLR I ...
2
votes
1answer
1k views

systemd failure on binfmt services

Systemd has several failed services, and I don't know how to work it out: # systemctl --failed UNIT LOAD ACTIVE SUB JOB DESCRIPTION proc-sys-fs-binfmt_misc.automount ...
2
votes
2answers
584 views

Deleting specific lines and duplicates from a 11gb wordlist text file

I have an 11gb wordlist file which is already sorted as each word is on its own line. I need to remove duplicates and lines starting from 077. I guess I need to run sed and sort -u together but I ...
9
votes
3answers
18k views

How to test if a variable is defined at all in Bash prior to version 4.2 with the nounset shell option?

For Bash versions prior to "GNU bash, Version 4.2" are there any equivalent alternatives for the -v option of the test command? For example: shopt -os nounset test -v foobar && echo foo || ...
2
votes
2answers
994 views

Can you specify an enclosure for cut? [duplicate]

Possible Duplicate: Is there a robust command line tool for processing csv files? I can use cut to extract columns from a file: $ cat foo foo,bar,hello bash,baz,world $ cut -d\, -f2 foo ...
0
votes
1answer
963 views

How do I force a user to log out? [duplicate]

Possible Duplicate: How do you kick a benign user off your system? I'm trying to remove a user account with the userdel -r command. However, it says that it is unable to remove the user ...
4
votes
2answers
381 views

manage unix user settings across multiple machines

I have many different linux machines with similar "profiles". I want to keep my settings in sync. e.g vimrc, zshrc,. I have the problem that they are various distributions of Linux with various setups ...
0
votes
1answer
99 views

Sort Column with matching string

I have tab-demlimted file, I want to sort them only for red_ball as follows input.txt id tagid name HH556 EN76 red_ball JH678 EN45 green_ball MH678 CV67 red_ball TY896 ...
2
votes
2answers
2k views

Sphinx Search shutting down after `FATAL: accept() failed: Too many open files`

I'm running Sphinx Search Server V2.06 ( the latest stable release ) on an Amazon EC2 with Linux CentOS. In general it is running fine, but the searchd.log is showing this error over and over with ...
7
votes
2answers
4k views

How do you specify a format for the input to date?

Given a date and time in a format that is not recognized by date, how can I get date to recognize the date and time? For example: $ date -d "09SEP2012:23:58:46" date: invalid date ...
4
votes
1answer
713 views

Fedora 17 Xorg fails to start on boot

My Fedora 17 installation is no longer booting into X : it finished loading the boot screen, then the cursor turns into an "X", flashes a quickly a few times then the just stalls. To get X to load, I ...
4
votes
2answers
4k views

How do I parse namespaces from an XML file using XMLLINT and BASH

Below I have an example of an Adobe XML swidtag used to track inventory. I need to parse out relevant information using xmllint in bash and output that to a new text file. For example I would like ...
0
votes
1answer
898 views

Unable to loop through cURL command

I am able to execute individual cURL commands using, curl -u user:password -v -XPOST -H 'Content-type: text/xml' -d '<featureType><name>quadrella_indica</name></featureType>' ...
1
vote
1answer
625 views

How to initialize a read-only, global, associative array in Bash?

I execute the following code in Bash version "GNU bash, Version 4.2.39(1)-release (x86_64-redhat-linux-gnu)": function foobar { declare -rgA FOOBAR=([foo]=bar) } foobar declare -p FOOBAR # Output: ...
9
votes
3answers
9k views

adding text to filename before extension

I would like to add text to the end of filename but before the extension. Right now I am trying, for f in *.shp; do echo $f_poly; done the output is, Quercus_acutifolia.shp_poly ...
0
votes
1answer
178 views

Data Recovery programs in Unix?

I did not expect to miss Windows when I changed it to Debian here. Now I need to get the installation-media back. By which tool can I get the installation media back in Unix? I use Debian.
1
vote
1answer
342 views

Install winetricks application to ~/.wine prefix

How can I tell winetricks to install an app to ~/.wine instead of ~/.local/share/wineprefixes/<app-name>? I have already tried WINEPREFIX=~/.wine winetricks <app-name> without any ...
1
vote
2answers
242 views

Missing float function in awk on RHEL 5.8

Why is float missing in awk on my RHEL 5.8? Was it replaced by some other function? On Solaris: echo "Foampile=123" | awk -F"=" '{ print float($2) "<->" $1 }' returns 123<->Foampile ...
0
votes
4answers
815 views

Bash Globbing Variable Substitution? [duplicate]

Possible Duplicate: Batch renaming files I want to rename files using their existing name as a base for the new one. So if I can ls these files with ls blue*+(.png) I'd want to rename ...
1
vote
1answer
4k views

Command to see the size of Harddrive in Debian?

It is perhaps /proc or something else. So how can I for sure know which harddrive I am using Debian?
1
vote
0answers
98 views

How to install master branch of freeradius on Centos

Could someone take me through the steps to install the master branch of freeradius on a fresh Centos 6 installation?
2
votes
1answer
66 views

remotely query text file associated with an instance of vi

I have opened several text files (a.txt, b.txt, c.txt, ...) in different sessions of vi launched from different instances of a bash shell. Having then accessed that machine remotely, I wish to ...
0
votes
1answer
2k views

make install - how to use wget, not curl

I do not have root access on my Ubuntu but want to install git. I was following this tutorial but when running make or make install it says curl is not installed. Can I use wget instead if this is a ...
11
votes
5answers
28k views

Enabling IOMMU in the kernel for graphics card pass-through

Short question: How can I turn on the intel_iommu setting in the Linux kernel? I run a Debian host, using the grub2 bootloader. Documentation I've seen says to edit /boot/grub/menu.lst, which seems ...
0
votes
0answers
624 views

Why can't I find wireless-tools in Debian repositories?

I have installed the squeeze version of Debian on a computer in offline mode (no internet connection during installation). After the installation (that was successful) I edited /etc/apt/sources.list ...
3
votes
2answers
246 views

Deleted GRUB root directory. How do I reinstall grub?

I have the following partition structure /dev/loop0 squashfs /dev/sda1 system reserved ( ntfs ) /dev/sda2 ntfs ( windows partition ) /dev/sda3 ntfs /dev/sda5 ntfs /dev/sda6 ext4 I have Ubuntu ...
7
votes
5answers
5k views

Replace dots with underscores in filenames, leaving extension intact

I have a bash script which I'm trying to get to replace dots in filenames and replace them with underscores, leaving the extension intact (I'm on Centos 6 btw). As you can see from the output below, ...
4
votes
3answers
731 views

Linux installation stops working after a few reboots

I'm trying to set up a dualboot Win8/Linux on my HP tablet (touchsmart tm2-1050ez). However, when I'm finished setting it all up, after a few more reboots, I'm not able to boot to Linux anymore, as I ...

15 30 50 per page