0
votes
3answers
509 views

How to remove/rename file which contains special character eg. “-x” using command line [duplicate]

Possible Duplicate: What does “--” (double-dash) mean? Can anybody explain me below things i have file named "-xyz". if i try to remove or move that file using command line , it's unable ...
3
votes
1answer
133 views

Compile mkvtoolnix for router with customized firmware

I am using my router (asus-rt66u with customized firmware (tomato) as a media server. To get the tools I need, I have been using the optware package manager which has has bunch of cross-compiled ...
4
votes
2answers
2k views

Clipboard doesn't work in KVM.

I have a RHEL 6 Desktop with a windows KVM. How could I get the clipboard working, just as there is a solution in VirtualBox to share the clipboard between host and guest?
2
votes
2answers
181 views

How to retrieve an installed AUR package?

I used yaourt to successfully build and install an AUR package, unfortunately missing the fact that in its default configuration the built package is removed after installation. Since the build took ...
2
votes
2answers
148 views

Does a parent bash script remember the cd history from a child bash script?

Example: mainscript.sh cd /mnt/something ./buildscripts/000-script.sh 000-script.sh cd /mnt/otherthing mkdir something exit
6
votes
2answers
1k views

How to block loading kernel module only in single user boot when blacklist fails?

On a "Linux debian 2.6.32-5-amd64 #1 SMP" installation where loading a kernel module (mpt2sas) is desired to be delayed to be loaded after starting sshd and users can remotely login, the mpt2sas ...
6
votes
1answer
274 views

Back button to middle mouse button

I would like to map "Back" button (xev shows it as "button 7") of my mouse (A4Tech X-7) to act as a middle mouse button. Is there a way to do this? I'm lost in google, finding only how to map buttons ...
6
votes
3answers
2k views

Package manager for AIX

While installing Subversion on AIX (version 7.1) from the official site, there are dependencies I need to resolve first before I can proceed to install the subversion package. While installing the ...
2
votes
1answer
279 views

PHP phantom cron job

I disabled all my cron jobs by putting a # in front of them. Except for one: @reboot echo "Hi I rebooted" The rest are: #0 2,14 * * * /home/backup1/mysql-backup.sh #0 * * * * mono ...
4
votes
2answers
304 views

How to lock a directory?

I want to block any kind of access to a certain directory unless a password is provided. It could be my root or account password. The directory is residing on an NTFS partition, and this method needs ...
4
votes
2answers
564 views

Bash prompt not recognizing Unicode escapes

I'm trying to customize my Bash prompt with Unicode characters and I'm having a bit of trouble. If I try to include a Unicode character like this: $ echo ☢ | hexdump -C 00000000 e2 98 a2 0a ...
2
votes
4answers
105 views

Is there a structured format of version info for OS-level executables?

I am looking for a structured format of version info for OS-level executables, such as in /usr/bin and /usr/local/bin. The problem we are having is the inconsistent architecture between our PROD and ...
6
votes
1answer
503 views

Unzipping certain archives works on Windows but not on Linux

I've asked a few people and just thought about asking it here. We get sent files from an international company for design work in a zip format. Well when I run a script to unzip the files in the ...
4
votes
1answer
273 views

Linux: Current correct/recommended use of games-group?

What is currently considered the correct/recommended/best-practice use of the games-group... As a "device group" for game-ports and joy-sticks, unassociated with the games-user (except for being one ...
2
votes
2answers
365 views

Is there any way to test out PS1 Bash Prompts before committing them?

I'd like to mess with my Bash prompt, but I'd like to do so in a way that doesn't corrupt my already extant one. I could just comment it out, but is there a way to test it either with an online tool ...
5
votes
4answers
15k views

How to remove all default gateways

I'm running a custom built linux machine, so not all linux commands are available. I execute network related commands, so I need to set a default gateway right before I run my command, then remove ...
1
vote
1answer
117 views

how to add a description in footer

I enjoy learning how to modify files with awk, sed, and bash. However, I know it could cause issues down the road and I would like to be prepared with a log inside the file. I was thinking about how ...
1
vote
0answers
94 views

Display Issues in KDE on laptop at startup (it happens when I plug and unplug the AC adapter)

I have a display problem in KDE, sometimes at startup everything goes black except the mouse. It only happens in the Login screen or in the boot screen. Lilo displays correctly and once I have loaded ...
1
vote
1answer
244 views

Installing Linux on an Android netbook

Is it possible to boot Puppy Linux using an USB stick on a netbook running Android, specifically this one: http://amzn.to/VSEJTf? Is the right kind of BIOS in place that it can boot from USB?
1
vote
0answers
134 views

Installing IPSEC on FreeBSD

how to install IPSEC on two FreeBSD 9.0 machines to can send an encrypted packets between them , and let them read the encrypted packets .
11
votes
2answers
2k views

Why are the grsecurity patches not included in the Vanilla Kernel?

What are the reasons that grsecurity patches (or the security features it brings) are not included in the kernel by default. When looking at the benefits for security it seems the vanilla kernel is ...
3
votes
1answer
4k views

Create and control start up scripts in BusyBox

I have compiled a custom linux kernel in BusyBox. BusyBox init does not support runlevels. When the kernel boots up in BusyBox, it first executes init which looks for the specified runlevel in ...
2
votes
1answer
2k views

How to install much newer mpt2sas driver version in debian squeeze?

Linux debian squeeze 6.0.6 (2.6.32-5-amd64) is supplied with quite an old 02.100.03.00 version of the mpt2sas driver. I do wish to install a much newer mpt2sas driver version. In know there are ...
16
votes
3answers
1k views

How can you trim files using the command line?

What is the console equivalent of the following Python code: target = file("disk", "w") # create a file target.seek(2*1024*1024*1024) # skip to 2 GB target.write("\0") target.close() Maybe some ...
5
votes
1answer
1k views

Blocking visitors that access by server IP address

My Apache Server IP address is 192.168.1.100 and the Domain Name is test.local. If a user types in the URL, say "http://test.local", then they should be allowed. If a user tries to access "http:// ...
9
votes
2answers
1k views

echo vs <<<, or Useless Use of echo in Bash Award?

By now the Useless Use of cat Award is very well known, and there's also a mention of a Useless Use of echo (not relevant for this question). I'm wondering if there should be a "Useless Use of echo in ...
5
votes
2answers
184 views

Getting or cloning the users current terminal?

I have to work with a script that forks and launches an instance of xterm in order to display log output in one window and have an interactive interface in the other. Personally I prefer rxvt-unicode ...
4
votes
1answer
502 views

Virtualbox seamless mode in Bodhi Linux

I just created a Bodhi virtual machine (Win 7 Host) and installed virtualbox-guest-additions but I'm still not able to activate seamless mode in virtualbox. Is this mode even supported for Bodhi Linux ...
4
votes
1answer
776 views

Why ssh-copy-id prompts for the local user password three times?

Noticed from my previous question that when trying to copy an SSH public key to a remote host via ssh-copy-id, I am prompted for the local user password three times: ssh-copy-id myuser@myserver ...
2
votes
1answer
76 views

required output not achieved by bash script

I am new to bash script and want to create bash script that moves some days old files between source and destination as per days defined in script. #!/bin/bash echo "Enter Your Source Directory" ...
2
votes
2answers
127 views

Why I have two /dev/sdx entries with a single disk?

In my laptop (running Linux) I have only one SSD, connected to the SATA3 port. Why I have two sdx entries in /dev directory? In particular I see /dev/sda and /dev/sdb, and /dev/sda is the SSD: # ...
3
votes
2answers
2k views

Read a file and copy to another file

I'm having a issue, I need to copy the file contents and remove a couple of lines if they match the output from a previous command. But so far, I'm having an issue in maintaining the file lines ...
1
vote
1answer
170 views

Host not found trying to restrict access to yahoo.com in elinks using squid

I added this in squid.conf acl blocked_sites dstdomains .yahoo.com http_access deny blocked_sites and this in elinks.conf set protocol.http.proxy.host = "proxy.localhost:3128" set ...
1
vote
2answers
277 views

Restricting access to yahoo.com in elinks using squid

I need to restrict access to yahoo.com and all its subdomains in elinks. I must use squid but I don't know how to configure it. Can anybody help me because I am new to Linux.
4
votes
1answer
87 views

how to escape “\”in ssh-copy-id?

I'm connected to Ubuntu server that is a member of a corporate Active Directory domain via likewise-open. The users are in the form mydomain\myuser. I can connect to it via ssh, escaping the \ with ...
7
votes
3answers
2k views

Disable colours on terminal and SSH

My local Linux machine has coloured terminal output like this; When I SSH to a pfSense/BSD box it changes the colours like this; Even when I SSH from to a machine that doesn't have a coloured ...
10
votes
5answers
880 views

How to find files with 100% NUL characters in their contents?

What is the Linux command-line command that can identify such files? AFAIK the find command (or grep) can only match a specific string inside the text file. But I want to match whole contents, i.e. ...
-1
votes
1answer
136 views

Error while running bash script that moves files

I am new to bash script and want to create bash script that moves some days old files between source and destination as per days defined in script. When I run this script I get error find: paths ...
0
votes
1answer
104 views

Why is this variable not getting passed to awk? [duplicate]

Possible Duplicate: external variable in awk How do I pass this variable below? This doesn't work: fname=testfile.txt lsof | awk '/deleted/&&/$fname/ {print $4}' *----no output* ...
9
votes
1answer
5k views

How to list keys added to ssh-agent with ssh-add?

How and where can I check what keys have been added with ssh-add to my ssh-agent ?
2
votes
0answers
126 views

Can a FAT32 and NTFS file system exist without UUID?

I have an USB disk drive partioned with 2 FAT32 partitions, which is not getting detected in the embedded device, but gets detected in a Fedora system. Basically in the udev rules, I am not able to ...
4
votes
0answers
425 views

Linux From Scratch 7.2: Error while making binutils-2.22 in chapter 6

I get the following error while executing make tooldir=/usr ../../binutils-2.22/libiberty/regex.c:130:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] ...
2
votes
2answers
325 views

Script to convert filenames to lowercase depending on extension

Script to convert filenames to lowercase depending on extension
3
votes
0answers
370 views

How do I let an SDL app (not running as root) use the console

I want to use an SDL-based program to display graphics on the console, without having to log on from the console, and without running the program as root. For example, I want to be able to run it via ...
1
vote
3answers
5k views

Screen resolution problem in Fedora 17 on Oracle VirtualBox 4.2

I have HP Pavilion dv6 6119tx system which has a screen resolution of 1366X768. But after installing fedora 17 on VirtualBox with Guest additions, the default resolution is 1280X768. Whenever I switch ...
0
votes
2answers
245 views

Shell script that copies while adding a user-provided filename suffix

I'm trying to write a shell script on Solaris that copies files from one directory to another. I need it to prompt the user for a date, and add that as a suffix to the destination filenames. How do I ...
5
votes
4answers
346 views

Accidental `nano SomeFile | uniq` renders the shell unresponsive

In my attempt to get unique entries (read lines) out of a simple text file, I accidentally executed nano SomeTextFile | uniq. This "instruction" renders the shell (bash) completely (?) ...
4
votes
1answer
1k views

recovering deleted file held open by apache?

suppose an apache log file gets deleted but its held open by apache then this is what i am doing. pid=$(lsof | grep text.txt | awk '/deleted/ {print $2}') fd=$(lsof | grep text.txt | awk '/deleted/ ...
3
votes
1answer
616 views

How can I get a package manager on a Samsung Chromebook?

I have enabled developer mode, and I can access the shell, but I don't have the emerge command, I remember reading that ChromeOS is built on Gentoo. How can I get a package manager on ChromeOS?
4
votes
1answer
685 views

How to automatically refresh Vim on buffer/window focus?

I often use Control+L to redraw the screen in Vim. In particular, when I come out of sleep or change monitor configurations I often find that Vim needs to be redrawn. I thought it might be simpler to ...

15 30 50 per page