A family of Unix-like 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

4
votes
3answers
10k views

Cloning an SD card onto a larger SD card

I'm using Ubuntu 12.04. I have an old 4GB SD card, and have just bought a new 16GB SD card. I would like to copy everything from my old 4GB SD card onto the new 16GB SD card. I was afraid that the ...
0
votes
2answers
345 views

If I run an infected file on VMware does my main OS gets infected as well? [duplicate]

If it does or could potentially happen what about if I have linux (as an alternative installed native OS) and run VMware in linux to run a windows virtual machine and run it in there?
0
votes
1answer
545 views

Enable external monitors on W520 laptop running CentOS 6.4

Has anyone done this? I've googled around for hours but no luck. Some suggest to change the BIOS "Display" settings (to "integrated" or some other value), others suggest to use xrandr, others say add ...
1
vote
2answers
358 views

Remove X number of characters from command STDOUT

I'm running an application that is outputing lines, piping to GREP to select only specific lines, but want to remove the first X characters which are worthless. Specifically: varnishlog | grep Hash ...
2
votes
2answers
175 views

How can I know what device the file in /dev is mapped to

I have installed a new device in linux. If I enter lspci, i can see the information of this device. But, I do not know which file in dev is mapped to this device.
0
votes
0answers
140 views

Sever networking stops after few hours but works after suspend/wakeup

I have an Ubuntu 12.10 Desktop PC acting as my headless home server. I can ping it and access the files and folders on the computer with no issues. But after a few hours of running, its networking ...
0
votes
2answers
780 views

Does running a dual-core processor with one core disabled reduce power consumption?

I have a Core 2 Duo laptop, and I want to extend my battery life as long as possible. If one was to use an uniprocessor kernel, the second core should not be 'booted' for use by the OS (for lack of ...
0
votes
1answer
67 views

Tab key prints an “ i ” to the console instead of executing tab complete

I have been using Linux for 27 hours now and I am just now getting aquainted with the command line interface. In my instruction, tab complete should execute the remainder of a directory name such as ...
3
votes
2answers
2k views

What's the difference between a Windows hard link and a Linux hard link?

The open source package BackupPC does not run on Windows due to its lack of support for hard links. I did a search and came across this document referring to hard links in Windows. Are these somehow ...
0
votes
2answers
475 views

Connect to SSH on server, and then see output from existing console sessionn

Once connected to an existing Linux server, is it possible to view the output of an existing console session running locally on the server (via KDE)? I've seen mention of screen in my research but ...
-1
votes
2answers
733 views

Unable to connect to Internet in OEL5 guest even though I can ping machine from host machine

I have Oracle Enterprise Linux 5 as Guest on VirtualBox running on Windows 7 host using Bridged Network. I have being trying to configure a static IP on OEL5 VM Guest at work, as previously the VMs ...
6
votes
2answers
55 views

discover the directory that prevents a file from being read in linux

i'm getting a permission denied for a user in a really long path. $ sudo sudo -u user cat /l/o/n/g/path/file Permission denied i'm pretty sure path and file have permissions for that user. Is there ...
1
vote
0answers
222 views

Python taking too much memory on server,

I have a running EC2 instance on amazon AWS. and some time server gives me the memory maximum utilization above 97%. When i saw my server stats on newrelic That showed me the below running processes ...
3
votes
2answers
18k views

How to replace a file in jar with command line in linux?

I have a jar, and I need to replace a class in it, at this moment, I can only open it with "archive manager" and then drag and drop the new compiled class into the jar, but I think this is really ...
1
vote
1answer
421 views

Minimal hosting control panel or API?

I have many VPS managed via Proxmox. Each VPS is a dedicated server for 1 single domain. I was looking for a solution to manage email accounts, FTP, databases remotely, possibly through an API for ...
6
votes
2answers
3k views

Where does top command get all the data for CPU Utilization?

When I run the top command, the third line is; Cpu(s): 0.3%us, 0.3%sy, 0.0%ni, 99.2%id, 0.1%wa, 0.0%hi, 0.0%si, 0.1%st From where does top command get this data? Does it get from /proc?, if ...
0
votes
1answer
354 views

Multi-threaded execution of simple perl/python script

Some years ago a friend created a 'benchmark' (Note: Not a benchmark) by which wouldwhich we measure one raw aspect of computing power. Namely how fast (or indeed slowly) the computer could count to ...
0
votes
1answer
1k views

Setting KDE Task switcher to list windows from all screens in Kubuntu 12.04

I moved this question from Unix/Linux SE, since I think it fits here best. When I alt-tab in Kubuntu 12.04, the listed windows are from the current screen only. In the Task Switcher settings, the ...
2
votes
1answer
1k views

How To Change The Floppy Image Of Qemu?

I'm developing my own OS, but I'm having some problems with Qemu, because I need to change the floppy image from grub.img to os.img while the emulation is running, but how can I do this?
0
votes
1answer
1k views

Error when move older files to new location

I used below command to move to folder called "old" some log files which are older than 3 days. find -type f -mtime +3 -exec mv {} old/ \; After run this command it moves those files and it gives ...
0
votes
1answer
568 views

Detect HTTP sessions using tcpdump [closed]

I have a tracefile and I want to find all web servers that were successfully visited in the trace, contacted via HTTP. I'm using: tcpdump -r file.trace - tcp port 80 Maybe I have to search for a ...
0
votes
3answers
305 views

How to give access to user for specifig directory?

I made symlink when logged in as www (apache user): ln -s /home/anotheruser/test /var/www/test Now I go to my mydomain.com/test and I get a 403 error. /home/anotheruser/ has permissions 764 ...
4
votes
10answers
5k views

Is there a simpler form of find . -name “*substring_of_filename*” on Mac OS X and Linux?

On Mac OS X or Linux, is there a simpler form of the command find . -name "*substring_of_filename*" which is to find all files having names containing substring_of_filename within the current ...
1
vote
2answers
1k views

Copy an NTFS partition from a dying disk

I got a Windows 7 NTFS partition on a SATA drive which is having issues. The system crashed because of the corrupt pagefile the day I noticed file corruptions. Before the crash I noticed thousands of ...
2
votes
2answers
1k views

Trying to enable passwordless sudo

I want to enable passwordless sudo for user "bamboo" on my host, so I have added bamboo ALL=NOPASSWD: ALL and also %admin ALL=(ALL) NOPASSWD: ALL (user bamboo is in the admin group) to the ...
3
votes
1answer
4k views

Remove all symbolic links of files in one command

I want to remove all the symbolic links of files. I have a directory structure like /usr/local/instantclient/11.2.0.3 which contains lots of files and i have symbolic links of these files in ...
1
vote
2answers
1k views

How can I find out if I have enough ram to dual boot?

How can I find out if I have enough ram to dual boot or boot from a usb? I have a windows xp sp3 laptop with 2gb of total ram and I'm interested in trying out linux (maybe ubuntu or mint), for fun. ...
0
votes
1answer
744 views

How to scp files that match a particular date and name pattern

If I run an ls -ltr on myserver.org:/some/path/dir: -rw-r--r-- 1 devops devops 20727251 Mar 16 08:02 herp1.derp -rw-r--r-- 1 devops devops 24542012 Mar 16 08:03 herp2.derp -rw-r--r-- 1 ...
0
votes
4answers
539 views

Regular expression to find senders IP using grep or other languages

I have input file that contains: 19:04:01.631948 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [none], proto UDP (17), length 48) 181.173.82.61.1985 > 250.66.33.195.1985: HSRPv0-hello 20: ...
1
vote
1answer
974 views

Can I have more than 1 private key in ~/.ssh?

I am trying to add an existing private key (id_rsa file) to my ~/.ssh directory, but see that I already have one. Do I have to replace the existing key, or is there a way to combine them? I assume ...
0
votes
1answer
701 views

Why is UDP traceroute not working for IPv6?

I have just gotten dual stack support on my CMTS and enabled IPv6 on my router. I have debian installed on my PC, and I am noticing the default traceroute (uses UDP on linux) is only making it to my ...
0
votes
1answer
410 views

MClone with multiple Linux partitions

Is it possible to use Trinity Rescue Kit's mclone(8) utility to clone a disk with more than one ext3/ext4 partition? Specifically, if I have one computer (the sender, running mclone -s) with a disk ...
1
vote
2answers
150 views

GCC running version doesn't match emerged version

Here is the output from my portage search for gcc: emerge -s gcc ... * sys-devel/gcc Latest version available: 4.6.3 Latest version installed: 4.6.3 Size of files: 70,353 kB ...
0
votes
2answers
928 views

permanent powertop changes with systemctl

I have got a .sh-script, trying to make powertop changes permanent. 'auto' > '/sys/bus/pci/devices/0000:00:02.1/power/control'; the commands in this .sh-script are all of this type. I have a ...
1
vote
2answers
65 views

Creating a separate access_log and error_log for Apache2

I would like to set up Apache2 so that it logs to a separate log for access and error. App1 is located at /var/www/ and App2 is located at /var/www/app2. How should I approach this problem? Should I ...
0
votes
1answer
84 views

Access Win Partition in Terminal Mac OS X

Is it possible to access (mount?) a partition in Mac OS X through the Terminal? Located at /Volumes/Windows HD/... I have VMWare fusion, but is it possible to access files through the Terminal? ...
2
votes
0answers
158 views

focus changes when changing workspaces in gnome 3

When I change between workspaces in GNOME 3 (I use fallback mode) either by using a keyboard shortcut (Ctrl+Alt+arrow_key) or by clicking on the workspace icon in the taskbar, the window with focus is ...
1
vote
1answer
2k views

My Logitech G35 headphones aren't very loud on Linux (fedora 14) why?

I have recently purchased a set of G35 headphones. They seem to be very loud when I use them on Windows, but when I try and use them on Fedora 14, they are very quiet and I can't seem to make them ...
0
votes
2answers
1k views

Bash script fails with “syntax error in conditional expression”

I'm new to bash scripting, and I just want to do a simple little thing, but everything I read online seems to not work for me! So I have this script here: #!/bin/bash if [[ $1 = "32"]] then ...
1
vote
0answers
462 views

how to set rate of ad-hoc wifi?

I am trying to run a test and I want to set the data-rate on my laptop that is setup for Ad-Hoc mode. If I run iwlist wlan0 bitrate I get a wlan0 unknown bit-rate information. response. Undeterred, ...
0
votes
1answer
2k views

How to remove Lock Screen and Logout from the GNOME main menu in SLED11?

I have SUSE Linux Enterprise Desktop v11 running on some computers that I need to lock down. I specifically need to remove the "Lock Screen" and "Logout" options from the main menu (below, on the ...
0
votes
1answer
510 views

How to find a file which is having same name in multiple folder and copy to target folder

I am using a command find ../../ -type f -name <filename>.PDF -print0 | xargs -0 cp --target-dirctory=<path>; the problem is it doesn't copy all files but only one file. I want to find ...
1
vote
1answer
55 views

Gnome sending keyboard shortcuts to an application

I would like to send key board shortcuts from my wm (gnome) to an application (specifically Emacs). for example If I press Some-prefix-key C-x C-s then I would like C-x C-s to be passed to Emacs ...
7
votes
2answers
1k views

Is there a DBus command to toggle auto-hide on a KDE Plasma panel?

Is there a DBus command (or some other way from the command line) to toggle auto-hide on a panel in KDE Plasma? (I'm running KDE 4.6.) I have a game I run in WINE that doesn't work right if it's ...
0
votes
1answer
284 views

where does boundary of file system lie in Linux?

I am curious that hard link cannot cross the boundary of file system. But where exactly is the boundary? I know hard disk and flash disk are two file systems; /home and /var are two file systems. But ...
2
votes
1answer
535 views

A Linux based VPN server that is compatible with the built in VPN client in Windows [closed]

OpenVPN looks good, but I'm hoping for a VPN server that is compatible with the built in VPN client in Windows. When doing a quick search it just comes up with VPN clients compatible with Windows. ...
0
votes
1answer
302 views

Uninstalling Ubuntu (without WUBI) [duplicate]

I have Windows, and I wanted to install Ubuntu. I accidentally installed it without WUBI. Now I can't uninstall it. Any suggestions?
0
votes
0answers
139 views

proxy works only as a normal user

I am unfortunately behind a network in which a HTTP proxy is present. This proxy requires an authentication through a Java software. Then all the connections have to pass though this HTTP proxy, ...
0
votes
1answer
255 views

Does the order of how a find command in Linux is negated matter?

I am attempting to negate a find command so that I get every other file except for the file or files in the command. find . -maxdepth 1 -regextype posix-egrep -regex '.*/.*\.svg' -exec echo {} \; ...
0
votes
0answers
629 views

getting following error while installing ffmpeg-php on PHP v5.4.14 / CentOS 5.9

Having trouble installing ffmpg-php on centos, SSH shows following error after commands: ./configure make make install ..... /usr/local/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1215: warning: ...