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

0
votes
2answers
131 views

Is it possible to run a command after a “pause” in linux desktop?

Is it possible to run a command after a "pause" in linux desktop? For example: #========================================================= #NetworkManage Auto Connect: chkconfig NetworkManager off ...
0
votes
3answers
2k views

New terminal window (duplicate session) from Putty command line?

Being on Windows and accessing Linux via Putty, is it possible to spawn new terminal (Putty) window from the command line? I.e. to send something to Linux, while responding on which, it initiate new ...
0
votes
1answer
298 views

Locking a GNU-screen session after x minutes of non-use on Linux

I have a couple of services running in a GNU-screen session on top of Bash. Because one of the services contain sensitive data I have to constantly either close the terminal completely or lock the ...
0
votes
1answer
63 views

Getting rid of characters when doing gf in vim

I am using vim for coding. When I have something like the following: SomeModule->actualMethod() if I take the cursor to SomeModule and I do a gf I get a complaint that SomeModule- does not exist in ...
0
votes
1answer
3k views

How to install JDK 6 from a bin file on Ubuntu 12.04 LTS 64 bit

The Android Open Source project requires JDK 6. From posts I have read all over, the Open Source JDk will not work. I have tried many things from numerous posts here and on other webs to no avail. ...
0
votes
2answers
1k views

total disk usage for a particular user

I would like to see the total disk usage for myself on a particular file system. I execute the command `du -h ~my_user_name` However, this lists every directory owned by my_user_name. I would like ...
0
votes
2answers
146 views

How can I restore the man page for ls (/usr/share/man/man1/ls.1.gz)?

I was messing around with the man page files whereupon I accidentally deleted ls.1.gz, which describes the man page for ls. Is there somewhere where I can download a copy of this file which I can ...
0
votes
2answers
469 views

GTK+ 3 Menu configuration for Emacs

I don't like the GTK based emacs (Screenshot #1) and still prefer the tradition emacs (Screenshot #2), which I get from Ubuntu PPA. The fundamental difference is that the tradition emacs looks ...
0
votes
1answer
616 views

How can I use lookahead and lookbehind regular expressions on Linux using find?

I generally use the following command to match patterns find . -maxdepth 1 -regextype posix-egrep -regex '.*/{pattern}' However when I attempt to use a lookahead for example, no results are ...
0
votes
3answers
159 views

Ran out of primary partitions, want to install another system

I have a Fedora 18 system installed on my hard disk, but upon installation I created 4 partitions for boot, swap, root and home, and now I want to install Windows on some unallocated space (I need it, ...
0
votes
2answers
448 views

Sending files to CentOS machine via ssh

I'm using ssh and connecting to a linux machine for the first time from my Windows 7 machine and right now I'm using putty to access a CentOS machine via ssh. I need to transfer some big files to the ...
0
votes
2answers
618 views

VIM Editor: File Enconding and Line Endings

When saving files, these are my default settings in TextMate (Mac OS X): File Encoding: UTF8 (recommended) Line Endings: LF (recommended) How can I set VIM to save files with the same file encoding ...
0
votes
1answer
199 views

Executable not found although in PATH

My $PATH is set to a lot of directories including ~/bin and ~/target/bin I want to execute script.sh which is in ~/target/bin but I get the error bash: ~/bin/script.sh: No such file or directory ...
0
votes
2answers
90 views

Sending special bash characters to a custom function

I read this great article on customizing the bash prompt: http://blog.superuser.com/2011/09/21/customizing-your-bash-command-prompt/ I also read about using 256 colors in bash: ...
0
votes
2answers
444 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
3answers
1k views

How to run a script at boot time for normal user?

I want to run a bash script at boot time in CentOS 6. I added the script in /etc/init.d/ directory but all these script are run by root. I want to run script for any user.
0
votes
1answer
31 views

Linux command for creating/leaving/returning to shells

I was using a command a long time ago to manage my background processes and I can't remember wich one. I had to install it. I could create a shell and go into it Run a process Leave the shell with ...
0
votes
1answer
234 views

How to config sudoers file?

I'm using ubuntu server 12.04 LTS I want to know how to configure my sudoers file (obviously, using visudo), to permit an user to run commands like root (doing something like "sudo service x ...
0
votes
1answer
194 views

Where is my /boot/grub/menu.lst file

I m using VMware for my linux version Ubuntu 11.04 and i have searched for /boot/grub/menu.lst file but this file was not there. Why?? I was creating a new kernel in virtual linux but unable to ...
0
votes
2answers
153 views

Renaming a volume under Linux

It may be a very basic question, but I have USB devices that keep their old name after reformating it with mkfs and even after a repartitioning with fdisk. I wonder if there is a way to change the ...
0
votes
2answers
85 views

Deleting all word occurences with sed preserving linefeed

I'm trying to delete a word's all occurences in a text file with sed. I have this file f1: alma a fa alatt nyari piros alma and I'd like to delete all occurences of "alma". I use the ...
0
votes
3answers
78 views

How to call the names of directories after passing them all to xargs?

I'm using find to pass all directories to xargs, and the command on each dir by xargs needs to create a new directory for each, looking like dirname_a, so how can this be done? ie find . -type d ...
0
votes
1answer
37 views

Why does the “network” line need to be inside the interface file [duplicate]

In almost all the network configuration examples I can find, I always see this "network" line appear with an address ending in .0. auto eth0 iface eth0 inet static address 192.168.1.100 ...
0
votes
2answers
2k views

Rename a question mark (?) in filenames

With rename it is possible to bulk change filenames. I managed to get rid of all + with this command and replace them with underscores: rename 's/\+/_/g' * I could change normal letters like a to ...
0
votes
2answers
557 views

How come writing varying file sizes results in varying speeds? [duplicate]

Here is some output from the dd command: $ dd if=/dev/zero of=test.file bs=10M count=1 1+0 records in 1+0 records out 10485760 bytes (10 MB) copied, 0.130214 s, 80.5 MB/s $ dd if=/dev/zero ...
0
votes
3answers
66 views

how to remove a file in /etc when rc.sysinit is executing?

I want to remove a file when rc.sysinit is executing I've written something like following : yes | rm /etc/anImportantFileWhichBelongsToSystem I guess the parent user for executing rc.sysinit is ...
0
votes
1answer
404 views

Prevent SUDO from executing passwd

I want to prevent users with sudoer access from using sudo to execute passwd (and thus changing the root password). Is this possible? If so, how can it be accomplished?
0
votes
2answers
209 views

Ubuntu Server 12.04 LTS virtualization

I am building a web application for a family member and I need to learn Linux Administration, since I will be setting up the server myself. I've heard a lot about virtualization on server, but I have ...
0
votes
3answers
158 views

Partition hard drive to install windows

I need to partition my hard drive to install Windows. My current operating system is Ubuntu. I google'd for "partition hard disk/drive ubuntu" - Not much luck. Anything else you suggest me to ...
0
votes
3answers
140 views

Is Windows vulnerable because its sudo equivalent does not require a password? [closed]

On Windows from Vista and onwards, you have to press through an UAC dialog to perform something that requires admin rights like installing or uninstalling programs. On Linux to become root, you have ...
0
votes
2answers
729 views

Terminal highlight error when compiling with a make file

I have a simple make file and I want to highlite the word or line that contains "error:" to make it easier to see. I am SSH via Putty to the linux machine which may cause a problem but currently I ...
0
votes
1answer
131 views

Given 2 sorted files - delete all words found in another

On Linux I have two text files with russian UTF8 words sorted with sort -u (actually I used :%sort u in Vim, it produces same results). One of the files dict.txt contains around 700000 words of my ...
0
votes
2answers
1k views

USB Flash drive or USB SSD Drive to use Linux from USB? [closed]

I'm looking for an USB drive which I will use to store my Linux o.s. and run it from there. I have both laptop and PC with a lot of RAM (8/12 GB), so because I don't want to keep those 2 systems ...
0
votes
2answers
145 views

Sync $HOME across linux machines

What ways are there to sync my full $HOME across machines (currently 2)? Required features: exclude either symlinks outside tree or mount --bind so I can have big data outside the homedir but still ...
0
votes
2answers
81 views

Do I need to use -r with the command cp when using the find command in Linux?

I have documents spread between multiple directories in a given path e.g. /media/devicename/name_of_directories. I used the find command to help locate certain files e.g. .doc, docx, etc find . -type ...
0
votes
2answers
701 views

How to kill a process that won't die?

Something went wrong with my "setroubleshootd" demon on a production server. it's taking a lot of cpu and won't die no matter what! what i've tried sudo killall -9 setroubleshootd sudo killall -9 ...
0
votes
1answer
86 views

How to hide password while sending mail from linux commad line

I tried the approach in http://superuser.com/a/462871 and it works. But I don't want my gmail password to be stored in command history. Is there a way to avoid this?
0
votes
1answer
140 views

How to run GCC compiled output on NTFS drive?

Basically, I have three major partitions on my machine as I'm dual booting: Partition1: Windows-7 Partition2: Linux-Mint Partition3: SHARED_NTFS_DRIVE Well, I've reserved only a minimal chunk of ...
0
votes
2answers
127 views

How to SSH multiple service with a for in SHELL?

I would like to access some server via SSH, run some commands and exit. Do this for lots of servers. I know I can do this for one machine only, with this script : ssh **IP** << EOF chown -R ...
0
votes
1answer
283 views

Difference between su command for Fedora and Ubuntu?

To log in as root while using Fedora I use : su and then enter the password. But while using Ubuntu this fails even if I use the correct password. But if I enter: su -s and then enter the ...
0
votes
2answers
2k views

No internet access on Arch Linux

Today I installed Arch Linux on my laptop. Everything seems to work okay, except Internet access. I have tons of tutorials, nothing works. When I type ping google.com it returns unknown host ...
0
votes
1answer
59 views

Why is Linux not connecting to WLAN

I have a tri-boot laptop, and two of the operating systems I have are Ubuntu 12.10 and Windows 8. On Windows 8, I can access the WLAN, however whenever I restart the computer it defaults to having ...
0
votes
2answers
120 views

prevent automatic deletion of /etc/hosts entry

I am using a Linux Ubuntu Precise 12.04 version. I have added a virtual host entry in my /etc/hosts XX.XX.XX.XX www.domain-name.com After sometime, this entry got deleted automatically. What ...
0
votes
1answer
3k views

Viewing extended file properties via command line in Linux

In Windows it is possible to open explorer and add columns to view additional information about a file. For example in the image below, I added the columns for Company, Copyright and Description: ...
0
votes
1answer
877 views

Deleted Linux partitions but still get grub error and cannot boot into windows 7?

I had Windows 7 and Linux on a RAID0 disk- I deleted Linux, now when I boot I cannot get into Windows 7. I just get a grub error. If I try and use the Grub Repair tool and put that on a USB stick to ...
0
votes
2answers
219 views

crontab not working properly

When I run a script manually using root it is working fine. when I execute the same script inside cron it is not running. I checked the cron is actually calling the script but the script is not ...
0
votes
2answers
630 views

howto copy all text in a gnome-terminal in RHEL linux 5.3

I work on the gnome-terminal in RHEL 5.3. Since the terminal does not have features like searching for text, etc, I usually want to copy the entire text in the terminal and paste into an editor. In ...
0
votes
1answer
244 views

Bash: Copy logs to other file and remove copied log

I am using linux and doing some bash scripting. I have a log file which is making logs of all the events/changes our in particular directory. I need to copy these logs to some other file so that I can ...
0
votes
3answers
156 views

Continious mirroring of the whole notebook hard drive into a file on the exernal usb hard drive in Ubuntu Linux

What I need to have continious mirroring of the whole notebook hard drive into a file on the exernal usb hard drive. Sometimes the external drive could be unplugged. I'm running Ubuntu Linux.
0
votes
1answer
4k views

Failed to connect to the VirtualBox kernel service

I haven`t installed VirtualBox on my linux-mint-debian-edition system. Today,when I startx,I got this responses on my displayer: /etc/mdm/Xsession: Beginning session setup... localuser:sofa being ...