Tagged Questions

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

2
votes
1answer
656 views

Bash, how to globally fix ^H and ^? backspace problems

I'd like to fix this frequent problem where the shell on a remote server thinks my terminal's backspace key is ^? and sometimes it thinks it is ^H, and happens to be incorrect and outputs the wrong ...
1
vote
1answer
229 views

httpd running but Apache not listening

How to debug a situation where httpd is running but netstat shows Apache is not listening? This is a server where I run two apaches (v2.2), one for my prod systems and one for dev, with separate IP ...
0
votes
3answers
318 views

How to view files created in linux in Windows and vice versa?

I have Windows 7 and Ubunutu 12.04 installed inside Windows. There is some problem with the formats supported by both of the OS. So many files created in Ubuntu cannot be viewed in Windows. Also there ...
2
votes
2answers
333 views

How to check wifi connection without using ping in linux?

Basically I want to check if the computer is connected to the wifi (router) using a command line command. Ping is usually used to check internet connection, but I only want to know if is connected to ...
0
votes
1answer
178 views

Several Linux Distributions are hanging on boot - NVidia Graphics

I've just bought a new laptop, I used Linux on my old laptop for 15 months with no problems, but the new laptop has had problems now with several distributions. The laptop fails to boot up ~2/3 of the ...
0
votes
2answers
652 views

Cannot install Virtual Box onto Ubuntu 12.04

I downloaded the deb file from the main website, and ran it through software center, but when I try to install it, I get this error message: dpkg: considering removing virtualbox in favour of ...
2
votes
3answers
151 views

What does really mean null string?

I'm sure most of us know that when we want that some regex matches with a string at the begin of the line we must use "^" ... But, I'm trying to understand what really means "empty string at the ...
3
votes
3answers
576 views

linux tar -T - does not work on the fly

I found some problem with linux gnu tar. wheh I use option -T - (for file list from stdin) or -T named_pipe_file , this desn't work on the fly. for example, simple interactive script: while ...
11
votes
3answers
8k views

How to enter login information for a website from the linux command line

My internet connection is provided by the university. It is protected to a username/password combination. This means when I start up my computer, I have to start a web browser and open an arbitrary ...
0
votes
0answers
55 views

How to replicate couchdb instances behind home router firewalls?

What are the options (if any) to allow replication between couchdb instances without portforwaring the couchdb port on a home router? Assuming both couchdb instances are behind home router firewalls.
0
votes
1answer
139 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.
7
votes
1answer
2k views

Shell script to find all types of files in a directory with their count

I want to write a shell script or alias to find the number of different types of files in a directory. For example, sample output of script should be: *.h 20 *.c 40 *.cpp 10 Makefile 3
0
votes
0answers
55 views

Screen Won't Log

I am using screen for some activities, which I want to have logged. Basically I use: screen -S server1 to create a screen. Now, it "should" create a log file screenlog.0 - however, it does not. I've ...
0
votes
3answers
887 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
112 views

What are sparse files and how to deal with them?

When dealing with sparse files, df appears to report the dummy size and not the apparent size of the file which makes it difficult to monitor free space on the system. (I use df -h to check disk ...
2
votes
1answer
169 views

How to boot runlevel 3 as non-root user?

I'm using Arch Linux. I can boot to runlevel 3, but any other level than default (7) results in a prompt asking for my root password. (Including runlevel 3.) The normal login screen for linux is ...
0
votes
2answers
402 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
226 views

Good way to resolve dependencies for .rpm installation

I am trying to install jdk-7u25-linux-x64.rpm through rpm. However, rpm says it conflicts with jre-1.6.0_13-fcs. I then try to remove jre-1.6.0_13-fcs but it fails because there are other packages ...
7
votes
1answer
1k views

Using HDMI port as network protocol interface?

I was wondering if it's possible to use the 10.2 Gb/s HDMI port on several computers as a backbone networking interface for a home made cluster? Is there some kind of HDMI switch? Can HDMI transport ...
5
votes
1answer
199 views

NTPD: drifts away from system clock

Using RHEL 5.x on a workstation. I set the clock using ntpdate 0.us.pool.ntp.org and then start NTPD using service ntpd start. (this also happens at boot). Watching this over the next 20-30 minutes ...
1
vote
2answers
198 views

rm -r: exclude certain subdirectories

The problem I have a directory structure, e. g. something like this (here trailing slashes represent folders): ./A ./B/A/A ./B/A/B ./B/B/ ./B/C ./C/ And I need to recursively remove everything ...
1
vote
5answers
240 views

Pre-authorise sudo? (So it can be run later)

I often set my work computer running some time-consuming computations before I go home in the evening. After they're done, I'd like it to shutdown. However, as shutdown requires root privileges, it ...
0
votes
3answers
342 views

How to store complete path using 7z on linux

I am looking for a simple way to backup files that have changed in the last 24 hours and creating a daily 7zip file ( I don't need permssion or users just files ). Using the following command I can ...
0
votes
1answer
63 views

Troubleshooting issues on forums, how safe is it? [closed]

I was wondering if you could tell me how dangerous it might get to post (on some major Linux forums) outputs of commands like lshw, lsusb, lspci or dmesg publicly in order to solve some hardware ...
0
votes
2answers
273 views

Script for CRON (FTP get files EVERY MINUTE)

I want to create a script that must run with a CRON every minute (Q: Is it wise to run CRON FTP/wget every minute?) compares local directory with remote directory (Q: do I use FTP or wget and how ...
10
votes
4answers
13k views

Ubuntu and Linux Mint only run in Software Rendering Mode on Virtualbox

I am trying to figure out why Ubuntu and Linux Mint only run in Software Rendering Mode on Virtualbox. My motherboard supports hardware virtualization and it is turned on, and I have installed the ...
0
votes
1answer
364 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 ...
1
vote
3answers
2k views

How to reset a broken TTY?

My Slackware TTY can be broken easily by running: cat some_binary_file After the command, the entire TTY will no longer display readable characters but still responds to keyboard events. Even if I ...
0
votes
1answer
87 views

How to copy directory from remote server

I came across following instruction to copy a directory to my local machine. copy the gems from styx server from "‪location/to/the/directory" to your local directory I know rsync and scp can do the ...
1
vote
0answers
188 views

du-h --max-depth=1 or ls -lah equivalent for Windows

I am currently working with some command lines in Windows and noticed the command "dir" shows file size in bytes. I would like to see files in a more human-readable form, similar to the linux command ...
0
votes
0answers
92 views

How do I achieve software raid 4 array with different size disks with the largest disk being the parity?

For the last year I've been using a piece of software named unRAID built on top of slackware to host my NAS. I feel like I want to move on and evolve and build my own NAS setup on top of another ...
6
votes
1answer
336 views

What is the purpose of the magic numbers in Linux reboot?

On the Wikipedia page for Linus Torvalds, it is stated: The Linux kernel's reboot system call accepts their dates of birth (written in hexadecimal) as magic values. The documentation for the ...
0
votes
1answer
964 views

How to add yourself to sudoers list?

I was trying to install a package using the command: sudo apt-get install ruby-rvm But I'm prompted with nish is not in the sudoers file. This incident will be reported. I tried to add myself ...
0
votes
2answers
46 views

Firefox on Linux : New Tabs show last visited web sites instead of “BLANK”

I just opened a new tab in firefox. it is not blank it is showing last visited web sites and etc. how can i stop this ? did firefox implement this new thing ? i just re-installed centos and ...
0
votes
1answer
435 views

Not detected USB and CD/DVD driver on my BIOS setup

I have a Lenovo B460e laptop. The BIOS does not detect and boot a Linux LiveCD in the optical drive. A Linux LiveUSB does not work either. They are detected from within Windows so there is not ...
1
vote
1answer
611 views

Assembling an mdadm array with “possibly out of date” disks

I've recently moved house and have had some power problems after switching on my file server that's using a mdadm RAID5 set up. The file system I'm using is ext4. It seems that at some point two (of ...
1
vote
1answer
445 views

Disk usage of a symbolic link

If I check the file size of a symbolic link by stat(), then it reports a nonzero file size equal to the link path string. But when I use du on the link, it reports a size of zero blocks. Is there a ...
2
votes
1answer
810 views

How to compress only files without their parent directory?

I'm trying to compress files in a directory. Let's assume the directory is "test". when I execute the following command and unzip the file, I get "test" folder and files inside the test folder. zip ...
1
vote
3answers
175 views

Linux - Protection from ourselves (Root)

I love Linux and everything she stands for; however, unfortunately I grew up with Windows. Thusly so I have learned very bad practices (such as NT Authority will protect me). I have several Linux ...
1
vote
3answers
3k views

Restrict folder access in Ubuntu

I want nobody to access my private folder, I'd like to set a password for it or just make it only accessible by root user. How can I get it? I'm using Ubuntu.
2
votes
2answers
1k views

Why is the User created during linux installation not the root user? [closed]

Whilst I was installing Linux Mint... I created a user profile.. then after the installation was complete I tried installing NASM but after executing the make install command it failed to create ...
1
vote
1answer
870 views

How to enable auto-screen update on monitor plug-in/out on Lubuntu (and how is it acheived in Ubuntu)?

I have a laptop which I want to have connected to an external monitor 99% of the time. The other 1% I would use its screen. I want the laptop to be closed (usually) to save space, and to use external ...
0
votes
0answers
338 views

Trouble Adding ROMs in GroovyArcade

I don't know if any of you have experience with GroovyArcade, but hopefully someone's heard of it. It's an all-inclusive Linux live CD designed for emulating old game systems and arcades, based on ...
5
votes
1answer
3k views

Why can't I chown a VirtualBox shared directory?

I'm trying to recursively chown a VirtualBox shared folder, but I can't get it to work: $ ls -lah total 16K drwxr-xr-x 4 root root 4.0K Aug 1 2012 . drwxr-xr-x 23 root root 4.0K Jul 21 2012 ...
1
vote
1answer
112 views

Having trouble with what should be a simple bash script

I'm having a problem with one segment of the following script. Each echo->grep->was written in to help me figure out where the script was failing to perform as I expect it to. It is designed to be ...
0
votes
2answers
1k views

Kiosk lockdown Fedora 19 Xfce

I am attempting to lock down a Fedora 19 install so that the user is locked in to a full screen version of Firefox. This can be achived with an number of addons for Firefox. I also need to lock down ...
1
vote
1answer
270 views

Qt creator throws permission error on project (files owned by me) within directory of root

I have recently changed to arch linux from ubuntu and copied my qt project to my home directory, Whenever I open the project with qt creator, it gives me permission error and says that it cannot ...
0
votes
1answer
7k 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
108 views

How to add network aliases in Linux for network computers

In Windows, the c:\windows\system32\drivers\etc\hosts file lets you add aliases to IPs so you can remember those computers with a familiar name. Here's the header of the HOSTS file, for example ...
0
votes
1answer
99 views

Create a fake RDNS resolution in Linux

I'm currently contributing at Mozilla Community IT, and I'm working with our infrastructure team to setup a puppet master. Puppet doesn't play nicely without RDNS resolving properly, but our cloud ...