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
1answer
267 views

Command-line scp doesn't use case-insensitive autocomplete

Auto-completing filenames (by pressing TAB after first characters of the filenames have been written) is case-sensitive both on my Ubuntu 13.04 box and on my Debian Squeeze box, when I use scp. I ...
0
votes
3answers
586 views

Error on rebuilding Linux raid-1

I have a linux box which acts as a home NAS with 2 x 1 TB hdds in linux raid-1. Recently one of two drives failed, so I bought a new one (1TB WD Blue) and put it on. Rebuilding starts and stops at ...
0
votes
1answer
134 views

how to know in which directory a sudo user is working if i am a root user

Is there any way by which I can get which sudo user working in which directory on which file. Is there any file which shows details of current working directory of all sudo user.
0
votes
2answers
286 views

SFTP - Recursively fetch new files

I have a remove file system structure like this: + /measure + / 2013-09 + / 2013-09-04 + / fooinstrument + result03343445845.csv + ...
0
votes
1answer
320 views

Does NFS copy files to NFS server, or does it share files locally?

Bit of an outline: basically I'm running a Raspberry Pi to save videos from a webcam, but naturally the Pi doesn't have too much space, so I've set up a NFS server. Does the directory on the Raspberry ...
0
votes
1answer
4k views

How can I completely remove PHPStorm, and all associated files on Ubuntu 13.04?

After removing the Phpstorm directory from Ubuntu, future installation attempts do not actually install any more - no menu item appears under Applications in the top left, and running the "globally ...
0
votes
1answer
86 views

Why is [find] running incredible fast, if run twice?

In the Dash of my Ubuntu/Linux system are two versions of the same program. To find where the corresponding .desktop files are located I used find / -type f -name 'Sublime Text.desktop' 2> ...
0
votes
1answer
86 views

scp files from a host via another host

I am on machine A, i can access machine B by ssh and from machine B to C via ssh. But i cannot access machine C directly from A. The problem is that i have to transfer a folder of size 5 GB to my ...
0
votes
1answer
160 views

Just change all files to writable from root , how to reverse this?

I accidentally did this: chmod -R 777 / I suppose to do this: chmod -R 777 ./ I feel really bad now. How can I reverse this??
0
votes
1answer
22 views

what does this stad for [ 4200.237911 ] in i/o buffer error?

When i try to mount an external HDD of a friend of mine,this error is all over my screen.It shows a lot of errors which are unfamiliar to me ,but onething i know , it has many bad sectors in it. I ...
0
votes
2answers
76 views

Open list of files in the directory from which to choose the file to edit in vim

In the video at Watch how i work rails he first obtains the output of find . -type f and uses this list as a regular vim file to search. Ones he finds this file in the list, he can open it in vim. ...
0
votes
2answers
75 views

SCP long directories

Im wondering what the quickest way for this is On my local computer I have a file in /some/long/path/name When i have SSH'ed into another machine I decide I want the local file to go in ...
0
votes
1answer
83 views

Reset user password on reboot

Humor me for a moment because I'm aware that this is a terrible idea. I'm trying to devise a way to reset a user's password each time the computer is rebooted. So far, I've tried the following to no ...
0
votes
2answers
472 views

Tar - Remove Common Prefix When Creating Archive

I am attempting to tar up the contents of a root file system, located at $rootfs. The problem is, when I try to tar -c $rootfs > $dest, the directories between my current directory and the actual ...
0
votes
2answers
2k views

How to detect whether there is a CD-ROM in the drive?

I know my CD-ROM device (/dev/sr0) but how can I detect from a script whether the drive is empty or whether there is a disk in it?
0
votes
3answers
228 views

How can I launch web browser automatically with given window size and url

In linux, is it possible to launch web browser with given window size and url using terminal console or some kind of script (e.g., shell)? What I want to do is to test the web streaming server to see ...
0
votes
2answers
390 views

Make a USB stick bootable without a Linux ISO image, just a kernel

I have a bootable Linux on a 2 GB USB stick with 770 MB used, and another stick that is 1 GB. The aim is to put the files on the 1 GB stick and make it boot properly into Linux and run the software ...
0
votes
1answer
121 views

How to extract rar file without “Extracting ~” message

When I use zip command in shell script, I set on -q (--quiet) option. Is there the option for rar command? I don't want to show "Extracting ~" message and rar version infomartion in console. I ...
0
votes
1answer
179 views

SIGINT (ctrl-c) not instant for ping

At times I run a ping command (on GNU/Linux) and it won't stop immediately when I press Ctrl-c. To my understanding ctrl-c sends a SIGINT. What are possible causes of the ping command to not exit ...
0
votes
1answer
91 views

Is automount in linux dangerous as in windows

I am currently using Kali OS (based on debian). When I insert a dvd or usb, it automatically mounts and opens. Is it advisable to not keep automount option in linux as we are suggested in windows. ...
0
votes
3answers
83 views

Linux equivalent to Windows error code 3010?

I am fairly new to error codes and was trying to figure out an equivalent error code to Window's error code 3010 which states that an installation succeeded but requires a reboot. I tried looking ...
0
votes
2answers
429 views

How to setup muliple cron job every 3 hours but not simultaenously?

I need to run cron jobs during the following times: 1st job: 1PM 4PM 7PM etc.. 2nd job: 1:15PM 4:15PM 7:15PM etc.. 3nd job: 1:30PM 4:30PM 7:30PM etc.. As you can see each job run every 3 hours but ...
0
votes
1answer
140 views

Does interrupting rm command with keyboard delete any file?

I'm running Fedora 13 (Goddard) and when I was recursively removing a directory I noticed I had some files there I couldn't lose, so I interrupted the process with ctrl+c. Now I don't know if I lost ...
0
votes
3answers
204 views

How to partition disk for 3 operating systems?

Well, I decided to remove everything and start from scratch. I need Windows 8, Fedora and FreeBSD on the same disk, I prefer to have GRUB as main bootloader. I'm having problems with partitioning ...
0
votes
1answer
41 views

Why does 'which' give incorrect result?

I am executing on a Ubuntu 12.04 shell the following command: sudo bash -c "echo $PATH; which python" which displays something like ...
0
votes
2answers
85 views

ls command thinks directory is file

I have a directory brothers which contains files John.txt and Max.txt. I can cd into and out of directory brothers with no problems. However, when I'm in brothers superdirectory (one level up) and I ...
0
votes
1answer
136 views

Can I monitor my real hardware CPU, GPU, and HDD temps from inside VMWare Fusion on my Mac?

I use Linux Mint 13 (a derivative of Debian) as a guest OS under VMWare Fusion on my Mac. Is there a way to monitor the real CPU, GPU, and hard disk temperatures of my physical hardware in the guest ...
0
votes
2answers
1k views

Is it possible to shutdown remote Computers without inputing the password?

I used the following bash to shutdown remote computers,but for each computer,I must input the password for it.Is it possible to input the password Automatically? #!/bin/bash ssh -t ...
0
votes
1answer
218 views

How to build rpm package correctly?

I'm trying to install the new version from ganglia, which provides a tar.gz. My procedure was uncompress the tar.gz file, enter in the folder and then makes rpmbuild -ba ganglia.spec, a warning ...
0
votes
2answers
178 views

redirect output from rpm -Uvh postgresql91-*.rpm

I have a bash script to install postgresql part of the script contains this command rpm -Uvh postgresql91-*.rpm i need to direct ALL the output generated by this rpm command into a log file FROM ...
0
votes
1answer
142 views

I want to format(properly) pendrive which has linux installed on it on windows

I used dd command in linux to do byte-copy of a linux-distro iso. I installed it on a computer, I don't have access to that computer, to reformat my pendrive using mkfs.vfat. In windows only 456 ...
0
votes
2answers
222 views

Keeping config files synced in an encfs-encrypted dropbox

I using my Dropbox to sync my config files on different machines. In addition my Dropbox is synced with encfs. encfs mounts a volume with the decrypted Dropbox-folder on startup. This process takes a ...
0
votes
2answers
569 views

Raspberry Pi slows down internet access for the whole network

Whenever my Raspberry Pi is connected to the network (via ethernet) the entire network is slowed to a crawl. On my main computer, ping times for google.com go from ~10ms to ~200ms and it takes forever ...
0
votes
2answers
41 views

can I make an extra disk?

everyone. I'm trying(this time on windows) to download (or extract to, anyway) linux to the c drive. the thing is, I need to create a disk. how can I do this? I'm planning to extract my ISO file to ...
0
votes
2answers
195 views

Linux command to find all instances of a file pattern?

I'm looking for a way to scan a directory recursively and print out all instances of any file that ends ".qfx". Thus, for a given directory: somedir/ fizz.qfx buzz.qfx blah/ ...
0
votes
1answer
220 views

How to transfer entire directory from one server to another via SSH

I have two servers, access to SSH on both. I want to transfer entire directory from server A to server B. They are both remote servers to me. Am I right to assume it is possible to log into SSH ...
0
votes
2answers
257 views

How to force linux to use one network connection over the other?

I have connected my iPhone which has hotspot enabled to my ubuntu machine through the USB. Based on the type of network activity (say browsing vs ssh), I want to switch between network connections ...
0
votes
1answer
57 views

File on my webserver is not accessible

looking for help here, Someone has gained access to my Folder on a network-share(Redhat linux) and uploaded a file called malicious.php. I tried to delete it using Filezilla but I cannot delete this ...
0
votes
1answer
403 views

Map `php` at the command line to point to `/usr/bin/php`?

For some reason using php at the command line references /usr/local/bin/php instead of /usr/bin/php. How can I make $ php script.php the equivalent of running $ /usr/bin/php script.php? Current ...
0
votes
1answer
186 views

How to extract a record in a text on string match in a file using Bash

I have a text file sample.txt as: =====record1 title:javabook price:$120 author:john path:d: =====record2 title:.netbook author:paul path:f: =====record3 author:john title:phpbook subject:php path:f: ...
0
votes
2answers
133 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
299 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
2k 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
474 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
635 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, ...