Linux refers to the family of Unix-like computer operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

learn more… | top users | synonyms

3
votes
2answers
984 views

Program to check/look up UTF-8/Unicode characters in string on command line?

I've just realized I have a file on my system; it lists normally: $ ls -la TΕSТER.txt -rw-r--r-- 1 user user 8 2013-04-11 18:07 TΕSТER.txt $ cat TΕSТER.txt testing ... yet, it crashes a piece of ...
3
votes
3answers
3k views

Check if PDF files are corrupted using command line on Linux

I have many PDF files on one folder. Is it possible check if one or more files are corrupted (zero pages, or unfinished downloads) using the command line, without needing to open them one by one?
3
votes
2answers
610 views

SSH as Normal User --> SU --> SCP as Root

I'm on a Win7 box connecting to a linux server. From reading: http://winscp.net/eng/docs/faq_su it looks like I need to open my SCP connections as the particular user. When I connect via SSH, I can ...
3
votes
1answer
2k views

default file permissions for ftp uploads in ubuntu (vsftpd)

I followed this answer for setting default file permissions in my web root folder. I am trying to set all files/dirs to 775 by default. This works fine when creating files within linux and also when ...
3
votes
1answer
245 views

Where is terminal scroll back information stored (how does tmpfs work)?

While trying to test something unconnected, I launched an infinite loop on my terminator terminal emulator which printed a lot of data to STDOUT. After running it for a few minutes, I noticed that my ...
3
votes
2answers
3k views

How to use iptables to connect proxy server

In my company, all http and https must connect to a proxy server, which means we must set proxy in our web browser. Our department has an internal network (192.168.0.xxx). I use a Linux server as ...
3
votes
3answers
58 views

Why do I need ./ for commands to run on Mountain Lion? [duplicate]

Possible Duplicate: What does “/” , “./”, “../” represent while giving path? Why do I need ./ for commands to run on Mountain Lion? For example, when using mysql I have to type in the ...
3
votes
4answers
1k views

How to replace a list of strings by another list

I have a file which has (many) strings I'd like to replace, so I thought about using a simple command like: sed 's/string1/string2/g' file1 > out However, there are too many strings for that ...
3
votes
4answers
861 views

How to swap Escape and Caps Lock?

I am using Archlinux. When I program , I like to swap the Escape and Caps Lock. I know that gnome can do this job. But Gnome 3.6.2 in the Archlinux can not find this. So i use the xmodmap and create ...
3
votes
1answer
475 views

Keyboard-Shortcut to move windows around on multiscreen setup [duplicate]

Possible Duplicate: How to automagically move windows between monitors with one keystroke? I am looking for a way to move windows around on a multi-screen (usually dual screen) setup. So ...
3
votes
3answers
353 views

scp/sshfs on a remote 'not direct acessable' machine

Maybe the title must be changed but I have the following situation: I can ssh to a host A From A, I can ssh into a machine B, but this machine cannot be accessed from my computer. The name of the ...
3
votes
2answers
197 views

How should I create a folder that automatically links to a shared drive between Windows and Linux?

I'd like to set it up so that when I click on my 'My Pictures|Videos|Music...etc' folder it just redirects to my middle data drive. Likewise for my linux folders. How can I set this up? I'm sorry if ...
3
votes
1answer
3k views

Two parts: linux startup script to connect to bluetooth and cron to keep it connected

I have a mini bluetooth keyboard and a Raspberry Pi running a Debian-based distro. I know the MAC address of the keyboard but for this question, let's just use AA:BB:CC:DD:EE:FF. Right now I have to ...
3
votes
0answers
2k views

Linux run script automatically after boot [duplicate]

I want to start a script, which set the system time automatically after booting. I wrote the command date -s "12/31/12 23:59" in rc.d/rc.local. That didn't work. How to solve that?
3
votes
1answer
2k views

Mail migration: pumping mails into IMAP account

I'm having troubles migrating the email system of our company from an old provider to a new one, call this one FOO. I already created, via control panel, the email addresses and the mailboxes on FOO ...
3
votes
1answer
174 views

Can Linux OS's cause a 'neighbour' NTFS partition to stop working?

I have set up Ubuntu 12.04 on one hard drive, and Windows 7 on another, the bootloader being on the former. After about a month of using solely Ubuntu, I tried to boot W7 and got a message on the ...
3
votes
2answers
2k views

Failed to symbolic-link /boot/initrd.img-3.2.0-24-generic to initrd.img: File exists

Since running an upgrade today I am no longer able to use apt-get. Case in point: sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state ...
3
votes
4answers
7k views

Gigabyte GA-970A-UD3 mobo won't boot from USB flash drive

I am trying to boot BAMT, a Linux distribution based on Debian via USB on a brand new Gigabyte GA-970A-UD3 motherboard. I tried various flash drive and various OS. I never had this problem with ASUS ...
3
votes
2answers
304 views

How to limit CPU and disk usage of rm to allow other programs to remain functional

When deleting a large file, rm seems to be hogging all the available CPU and disk resources so that other program are hanging. Is there a way to limit a programs - specifically a CPU or disk ...
3
votes
2answers
11k views

“bin/sh: can't access tty; job control turned off” error when running shellcode”

I'm writing shellcode to exploit a buffer overflow vulnerability on a server. To do so I have port binding shellcode that I send to the server and then I run (from a linux terminal) the command telnet ...
3
votes
4answers
3k views

Migrating Windows 7 to new hard drive/partition

So, I'be managed to migrate my Windows 7 data over from /dev/sdb3 to a new partition on /dev/sdc1 using ntfsclone. I managed to resize the volume size to match the new partition size. I also used ...
3
votes
5answers
8k views

Good, lightweight GUI-based process monitor for Linux

I'd like a snappy GUI-based (I insist since people still want to propose console-based) application that can show me running processes and allow me to kill them, on Linux. It doesn't need to be as ...
3
votes
1answer
789 views

Why are there weird commas in my /etc/passwd file?

There are weird commas after the real-name parameter of some lines in my /etc/passwd file. kye:x:1000:100:Kye,,,:/home/kye:/bin/bash What gives? Why are they there? Can I remove them?
3
votes
2answers
3k views

Can I access an ext4 Linux partition in Windows? [duplicate]

Possible Duplicates: How can I access a Linux partition from Windows? How to read EXT2 from Windows 7 64-bit? Does a ext4 reader for Windows exist? I am currently in Windows and was ...
3
votes
4answers
9k views

CHKDSK in Linux…?

My computer has taken a dive and it will not boot up. I have reasons to believe that it is the hard drive. I would like to run CHKDSK but I cannot get the computer to boot up into Windows. My ...
3
votes
2answers
76 views

Are packages within a Linux distro interchangable?

Are the packages interchangeable "within" Linux branches? Between branches? Where is the dividing line? For example, within the Fedora branch there are various Desktop Environments, each with their ...
3
votes
2answers
691 views

Shell script that starts a process, starts another process, then kills the first process

Let's imagine I have a client and a server on the same machine, and I'd like to script some interaction between them. I would really like a shell script to - Start server Put server in the ...
3
votes
1answer
1k views

Linux: multiple network connections - 3G/4G / Wifi / LAN / etc; how can i set a preferred network connection to use?

I've been looking at how I can setup a laptop that has multiple network interfaces, but a problem exists if all the connections are active, i.e. 3G, WiFi and LAN are all connected, I would like it to ...
3
votes
2answers
1k views

Running FreeBSD binaries on Linux

In general, will binaries built on FreeBSD run on Linux operating systems, especially Ubuntu?
3
votes
2answers
1k views

3TB SATA hard drives into an old Linux system

I have a 3 year old PC with 4 internal SATA ports. My old SATA hard drives, all smaller than 2TB, work fine. If I buy a 3TB SATA hard drive, will it work in Linux? Will Linux with GRUB be able boot ...
3
votes
2answers
5k views

Can't install Google Chrome on Ubuntu 11.04

Yesterday I freshly installed Ubuntu 11.04 (Natty Narwhal) 32bit on my laptop but couldn't install Google Chrome on it. Google Chrome was working fine with my previous Ubuntu 10.04. While I tried to ...
3
votes
1answer
737 views

Midnight Commander search exclude?

In Midnight Commander, is it possible to exclude some directories/patterns/... when doing search? (M-?) I'm specifically interested in skipping the .hg subdirectory.
3
votes
2answers
3k views

How do I ssh without a password (setting up ssh keys doesn't work)?

I want to ssh, scp, git fetch, etc. without a password. I saw the previous questions, and closed ones regarding this issue, but the suggestion seems to be to use ssh keys. However, after setting up ...
3
votes
2answers
1k views

Downgrading linux

Is there any way to downgrade 10.10 to 10.04 without reinstalling linux ?
3
votes
2answers
3k views

How can I get an interface's bandwidth at any given second from the Linux command line?

I am doing a school project in which I want to get the bandwidth of a network interface at any given second, or some other small increment of time. I need this for a Perl script I am working on. ...
3
votes
3answers
679 views

New laptop - no install media - Backup Windows - Install linux

So I've got a new laptop, but no installation media. The hard drive has a hidden restore partition, a Windows 7 partition, and a small partition for vendor tools. My goal is to make a backup of the ...
3
votes
1answer
3k views

How to make all files non-executable recursively using find without affecting directories?

I need to strip the executable flag from all files within a certain directory and sub directories. Right now I'm doing it with a 2 step process find /dir/ -type f -exec chmod ugo-x {} \; find /dir/ ...
3
votes
2answers
2k views

Multiple parameters to bash script

I need to check for user provided options in my bash script, but the options won't always be provided while calling the script. For example the possible options can be -dontbuild -donttest -dontupdate ...
3
votes
1answer
386 views

List availible NICs on Linux

I have CentOS 5.5 I want to list all availible physical (or virtual on DomU) NICs connected to motherboard and see it's MAC addresses. I guess that related information should be somewhere in /proc or ...
3
votes
2answers
860 views

Excluding a list of directories from Find

I am using rsyncrypto to backup a few of my user directories. I want to exclude some subdirectories from the encryption. I read that the best way to do this is to pipe the output of find to ...
3
votes
1answer
140 views

Removing previously type commands at a remote server

I am ssh'ing into a remote server and then su'ing to root. The problem is that sometimes, I have not paid enough attention to the console message, and I have accidentally typed in the root password ...
3
votes
2answers
2k views

How to share ethernet connection on Ubuntu (Jaunty)?

I've googled it and I've found mostly tutorials on sharing when having 2 ethernet ports. I am in a hotel with only wired connection (eth0). I would like to use my wifi card to share my connection with ...
3
votes
0answers
3k views

Recover a file deleted using rm command in Linux [duplicate]

Possible Duplicate: How to recover a removed file under linux I have accidentally deleted a very-very important file in my Linux (Ubuntu) machine using the command rm. Is there any way to ...
3
votes
6answers
3k views

How to ACTUALLY install Java on Linux?

I have a Ubuntu Server. From the terminal, how should I install JDK? In this guide it says to use this command: sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk But on Suns website, ...
3
votes
3answers
405 views

Backing up to smaller drive

In a few hours I'll have a new 500GB Sony laptop, filled with the usual Sony rubbish which I'll promptly be replacing with Ubuntu or Crunchbang or something. However, first I want to make a full clone ...
3
votes
1answer
388 views

Recover backup copy of a ubuntu linux installation on a usb stick using dd

I installed Ubuntu 10.04 on a usb stick in persistent install mode. So I could boot the laptop or my desktop computer with the stick, at boot time. Once I needed the 8GB stick for another purposes so ...
3
votes
1answer
588 views

Why is 'browser.backspace_action' turned off by default in Firefox under Linux?

Just like the title states. How come this setting is disabled (2 in about:config rather than 0) under Linux by default? Is there a reason to not turn it on?
3
votes
1answer
9k views

Why is “tar” trying to create an empty archive?

I'm trying to use tar to tar files before transfer, so I can keep the entire file path rather than losing it along the way. However, when I try to tar an empty folder, it tells me that it is cowardly ...
3
votes
3answers
2k views

Watermarking videos on Linux

I want to add watermarking on to my FLV videos. Previously I used to do that using FFmpeg's vhook option but due to some problems I had to upgrade it to the latest SVN revision. This version of FFmpeg ...
3
votes
4answers
535 views

Why are there binary differences among compressed files generated exactly the same way from the exact same starting file?

I use the "diff" command to compare two compressed files generated using zip on the exact same starting file and they are reported as being different. However, when I uncompress them and use the ...