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

-6
votes
1answer
88 views

Can anyone please tell me about linux file handling [closed]

I am using Linux from 6 months I want to learn how this OS actually keep its files. What is the files type and how they be arranged?
20
votes
7answers
4k views

zero fill vs random fill

Many tutorials suggest that i should fill a disk with /dev/urandom instead of /dev/zero if i want it to be unrecoverable. But I don't quite get it, how can a disk still be recoverable after being ...
0
votes
1answer
416 views

Are there any SMTP servers I can install on linux / mac? [closed]

Are there any SMTP servers I can install on my linux (ubuntu) or mac OS X? I have msmtp as a client and I want to have a server.
2
votes
1answer
60 views

Why does sorting in Emacs produce a different output from sorting in bash?

Why does sorting in Emacs vs bash produce differing outputs? What can I do to get the same result in both? This is the output of diff two files, one sorted in Emacs with sort-lines, and the other in ...
1
vote
2answers
2k views

How to burn .img linux file to DVD?

I would like to install Chrome os ( vanilla http://chromeos.hexxeh.net ) on my old Toshiba laptop. I tried to burn the .img file to my USB. But My toshiba doesn't have any USB option in Startup Bios. ...
2
votes
2answers
731 views

create symbolic link for remote machine

I have 2 linux server A and B which share common directory. I have to create symbolic link for /etc/hosts file for each server with one common file . when ever I update that common file which is ...
1
vote
1answer
172 views

How to configure X kbmap for 4 languages while keeping two “main” languages easily switchable?

Now I have setxkbmap -model acer_laptop -layout lang1,lang2 -variant , setxkbmap -option -option grp:caps_toggle in a startup script. It works well for two languages. I want to have 4 languages ...
1
vote
3answers
17k views

Transfer file from Windows to VMware linux client

I have a Windows 7 host that runs a VMware RedHat Enterprise Linux 6.3 client (which has been modified and given to me as an .iso). Instead of being shown a graphical interface, I just have access to ...
0
votes
1answer
1k views

How do I backup symbolic links?

I created a ton of symbolic links using ln -s ../folder/subfolder mylinkname. How can I back this folder of "links" up so I could restore it at a later date? A compressed file or something similar ...
0
votes
1answer
137 views

Getting Ubuntu host's GUI on local machine when using X Window

I am tunneling X Window over ssh on my local OSX machine using XQuartz. Now the GUI of course looks different than what I would get when I start programs on ubuntu locally. Is there a way to make my ...
0
votes
1answer
356 views

copy a file with scp, which is not stored on a filesystem

I need to copy a .war file, which i currently just can reach over the UI with "http://server:host/directory/my_file.war". So its not stored on a fileserver. Im logged on a server A and the file needs ...
9
votes
2answers
2k views

XRandR DPI on multihead linux

I have multiple screens with different correct DPI settings. I can use xrandr --dpi X to change DPI for all screens, is it possible to set different DPI for each screen? How do I make apps ...
0
votes
1answer
361 views

How to: Add custom video driver to bootable mint USB?

Is there a way to modify bootable Linux Mint 14 image on USB to add the display driver? I liked the Mint when I saw the interface first time, however, I am stuck with a video driver issue - while ...
6
votes
1answer
6k views

How do I install Windows 7 (with Intel RST) and Linux to dual boot on a Dell XPS 15?

I have recieved a new $work laptop, a Dell XPS 15 with a 128GB mSATA drive and a a 1TB 5400 HDD. It came with Windows 8 installed, which is not supported by my employer and must be re-installed with ...
1
vote
1answer
1k views

How do I share a printer that is attached to a Fedora computer?

I have a computer running Fedora 17 with a Xerox Phaser 6360N attached to it. I need to share that printer to a LAN computer running Windows 7. How do I do this? Preferably without Samba.
1
vote
1answer
250 views

Routing issue with bridged connection

I had a problem setting up a wired to wireless bridge on my Raspberry Pi box - but that is now fixed - Wired to wireless bridge in Linux - but the consequence seems to be that the squid proxy server ...
3
votes
3answers
222 views

Direction of a symlink

touch a ln -s a b The above command creates a symbolic link which originates from "b" and points to "a": lrwxrwxrwx 1 root root 1 Dec 20 23:41 b -> a The question is that how to say that ...
-1
votes
1answer
2k views

Best filesystem for running linux off flash drives [closed]

Most other questions here close to this topic are either for SSDs, or ReadOnly usb live images. I'd like opinions on Read-Write usb images. I pretty much installed Fedora18 on a 16GB USB3 pen drive ...
3
votes
2answers
521 views

shell script - How to output the owner of a file

Is there a command to output the owner of a file, and nothing else? I suppose I could use ls and run it through sed, but if there is a better way, I would definitely use it. Thanks in advance.
1
vote
2answers
80 views

Booting Linux on a PC

I am new to linux. I am considering getting a Raspberry Pi and want to play around with linux to get the feel of the os. I am familiar with Unix (Max OS) and Windows but linux is new to me. Here's my ...
0
votes
2answers
503 views

creating CDF data using bash or awk or perl

we have some data like: 12 0 13 0 20 0 25 1 64 4 77 1 89 100 1201 204 I'd like to get this output: 3 0 5 1 6 4 7 100 8 204 explanation: we have 3 AS(autonomous systems) that have degree of ...
6
votes
2answers
960 views

What is the difference between Ubuntu, Xubuntu, and Lubuntu

I am relatively new to Linux operating systems and I'm trying to find out more about them. Unfortunately, I cant find a whole lot of good sources about them. Right now I get a bit confused and mixed ...
2
votes
2answers
98 views

Maintain text colors when wrapping command in bash script

So I've made a small script to search through my project for a word: #!/bin/bash grep -n $1 js/*/**.js grep -n $1 js/*.js When running these commands in the command line I will get some nice syntax ...
7
votes
4answers
404 views

How to empty the contents of continuosly streaming file in linux

i have the program running using this command command 2> sample.txt now that file is growing continuously and command will exit in 5-6 days and i beleive that file size won't go in GB I tried ...
1
vote
2answers
547 views

Error with the linux/unix command.permission denied

When I enter the following command in my mac OSX terminal i get a "permission denied" error even though I have administrative privileges. Command: administrators-Mac-mini-2:Build Foldername sarwan$ ...
1
vote
1answer
513 views

yum-builddep fails to retrieve an unrelated RPM and fails - how to prevent?

I'm trying to download sources required to build nekovm using yum-builddep, accidentally, I have nodejs RPM in the list, which is irrelevant to Neko, but it causes yum-builddep to fail, when searching ...
3
votes
2answers
455 views

Linux: find first result from specified search path

If I have a colon-separated path list, much like $PATH, but not neccessarily $PATH. I want to search that list for a specific file name. However, I only want the first matching path. I have ...
2
votes
3answers
59 views

mirror full website1 and all links to specific website2

I want to mirror a website that will be taken down soon, the problem im facing at the moment is simple -> mirror whole website1 and all links (will be files/images/similiar) to website2 too, so i got ...
0
votes
1answer
92 views

Gnome: How to open a very very large log file?

I've got a log file about 157Gb (Gnome). It's a very large file and nor gedit nor vim can open it. Alternatively I want only to see the last 20 lines and I can't back it up because of space storage ...
0
votes
0answers
1k views

“service mysqld start” is not working

I got this error message when I start mysql. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) I just installed installed apache2 and mysql. ...
0
votes
2answers
38 views

OpenSSH connection doent display Path or Name

I recently re-installed a Ubuntu server (12.10) and I happened to have a minor issue with OpenSSH. Once I created some new Accounts and logged into those the terminal always replys with "$". ...
0
votes
1answer
414 views

How to remove python installed from source in Oracle Enterprise Linux 5.4

I installed python 2.6.6, I already had python which is lower version 2.4 by default. Now I want to remove the python 2.6.6 ? There is no uninstall target and remove procedures from the internet. I ...
0
votes
1answer
98 views

Mac friendly file sharing from VirtualBox

I have set up Ruby on Rails on Ubuntu into a VirtualBox instance on my PC, I enabled Samba and I'm connecting to it via the home network from my Mac. All is fine except that I have some issues ...
3
votes
1answer
1k views

Is there a command line client for 8tracks.com playback? [closed]

I hope I'm not spamming with this kind of question here, but: is there a way to play 8tracks.com playlists from Linux command line using, for example, mplayer or mpg123? There is the 8tracks.com API, ...
1
vote
2answers
118 views

How to ouput the continuous stream to a txt file in linux

I have the command which continuosly outputs something on the screen of putty like we have when we install something. Now that process is very long and its going to take many hours. I have few ...
5
votes
1answer
3k views

Counting occurrences in first column of a file

We have this file: 1 2 1 3 1 2 3 3 52 1 52 300 and 1000 more. I want to count the number of times each value occurs in the first column. 1 3 3 1 52 2 This means we saw 1 three times. How ...
1
vote
2answers
2k views

iptables port based routing

I've been Googling this for days with no success. I connect to a VPN from my server from time to time and I'm trying to configure my Debian server to only use port 80 and 443 through the VPN and all ...
3
votes
1answer
411 views

Send apache traffic over VPN only

Is it possible to have an Apache webserver only send web traffic over a VPN? I've got a webserver (latest Debian) running at Linode that I use for an internal website at my office. For security ...
3
votes
2answers
383 views

How to move files down a directory?

I have inherited a folder structure on a project and would like to simplify it a bit. I have a root full of folders (1st level) and each of those folders has a number of folders in it (2nd level) and ...
7
votes
1answer
644 views

gparted crashed during a resize; what are my options?

I was in the process of resizing an NTFS partition on my 2TB data drive (increasing its size, moving it all the way to the beginning of the disk) when gparted unexpectedly terminated at perhaps 66% ...
0
votes
1answer
106 views

sshfs-fuse : how to open files on one linux box from a second box

I am relatively new to the linux world so I apologize in advance for any silly question I may ask. I have set up some tools that I like to use for programming on a ubuntu box. Now I have another ...
5
votes
2answers
2k views

How do I boot [embedded] linux from sd card?

I am hacking together a quick embedded linux system on a DM816x evm board. Previously I have been using TFTP and NFS to load my kernel and root filesystem to the board. I am now trying to switch over ...
3
votes
3answers
69 views

merge pieces of file together

I have a directory tree of files I need to loop through and reformat the lines. can I do this with sed with some combination of find? for each file, I'll need to adjust the text in the file from ...
0
votes
1answer
93 views

Different files on shared partition?

I am dual-booting Windows 8 and Ubuntu 12.04. My partition scheme looks like this: /dev/sda1 - Windows 8 (nfts) /dev/sda2 - Ubuntu / (ext4) /dev/sda3 - Ubuntu home (ext4) /dev/sda5 - swap /dev/sda6 - ...
4
votes
3answers
89 views

Output numbers from a file in a different order

I have a file that contains: 1 2 3 4 1 3 5 4 8 3 2 1 Each line has a different number of digits. And there are 1000 more like this. I want the output like this: 1 2 2 3 3 4 4 0 1 3 3 5 5 4 4 8 8 ...
6
votes
3answers
423 views

Remove duplicates in each line of a file

How can I remove duplicates in each line, for example here? 1 1 1 2 1 2 3 5 5 4 1 2 3 3 I'd like to get this output: 1 2 3 5 4 1 2 3 There are lots of lines (100,000) and in each line I want ...
2
votes
1answer
1k views

Network Bridging for WiFi-to-Ethernet in linux

It is possible to network bridging a WiFi-to-Ethernet link in Linux instead of Ethernet-to-Ethernet? I have a CentOS 6.3 machine. I am using KVM and I want perform a bridge to visualize more ...
2
votes
1answer
214 views

Centralize proxy settings for all the application on my workstation

As a consultant, I used to work at different clients premises. It happens frequently that most of them has specific proxy settings, but not all the application I have installed on my laptop get ...
15
votes
1answer
22k views

cat /proc/meminfo what do all those numbers mean

In reading the man page on the free command in Linux. I found that is gets its info from /proc/meminfo. I understand a few of the entries, like MemTotal and MemFree. What do the rest mean. cat ...
-2
votes
1answer
55 views

Google in Chrome on Linux

Google search and youtube do not work in Chrome on Linux (Ubutu 12.04 x64, Mint 14 x64, Android on Nexus 7). I can find video on youtube, but it don't loading. Also, i can get results from google ...