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
1answer
2k views

Why is “hdparm -w” considered dangerous?

I have an old disk that often gets stuck in some form of loop, and often I need to perform a full reboot to get it "unstuck", whereupon I had found out about the hdparm -w command. However, its ...
2
votes
3answers
694 views

How can I find all files on a folder tree that have a none alpha numeric characters in it

I have taken over from someone else a lot of historic data. However the file names are totaly random and badly formatted IMHO. To start with I want to get a list of all files that contain spaces, or ...
0
votes
1answer
2k views

RTL8188CE doesn't connect to any wifi access points

I'm using network manager to connect. Also, tryed iwconfig. Results are same. I even try to connect to open access point — results are same. More information: Drakmail@thinkpad-x220:~$ lspci | grep ...
2
votes
2answers
1k views

Who is responsible to set the process name?

I am working on a existing linux based script where it contains the following content pid=`jps | grep TestServer | awk '{print $1}'` kill -9 $pid I understand that this will kill this process ...
4
votes
2answers
522 views

Linux command line / Move files filtered by lexicographic order

I have some files in a directory that are named IMG_0001.jpg ... IMG_9999.jpg. I want to move to another directory the files that lexicographically have a name greater than IMG_9431.jpg How can I do ...
1
vote
1answer
4k views

How do I find the device node file for a USB device in Linux?

I've bought an X10 Home Automation USB interface: the CM15. This is the information lsusb gives: skerit@KIP-DU-SKER:~$ lsusb Bus 008 Device 002: ID 0bc7:0001 X10 Wireless Technology, Inc. ActiveHome ...
0
votes
2answers
528 views

How to get the device of a corrupted USB Stick on linux?

In order to try to rescue a USB stick which has probably a corrupted allocation table, I would like to get the device. I'm using Ubuntu 10 as a guest in VirtualBox, Host: Win7. Windows just tells me ...
1
vote
1answer
1k views

Why does GPG Encrypt/Decrypt fail between different versions of GnuPG?

I have 2 servers that will be passing data between them, one is Ubuntu and the other is Red Hat. Using the already installed versions on each, Ubuntu is 12.04 with gnuPG 1.4.x and Red Hat is ...
2
votes
1answer
1k views

Unable to login via xrdp

After starting xrdp and trying to login using Windows remote desktop client I get a dialog box with the message 'connecting to sesman ip 127.0.0.1 port 3350' and then nothing else happens. If I then ...
3
votes
2answers
169 views

How can I tell how long a particular file has been in a directory?

I want to find (and delete) all files from a directory that have been in the directory longer than X days. I know that I can find files that haven't been modified in an hour with find /directory/* -...
0
votes
1answer
265 views

Is it possible to have dynamic files with the contents being at some internet resource? [closed]

Maybe this is a stupid question, because, if this was trivial, Dropbox and other similar tools would have made use of the functionality. And if it was trivial it would create horrible security holes. ...
0
votes
2answers
120 views

Why do linux kernels include files for all devices?

The kernel for my device includes so many files for other devices and situations that my device cannot use. The kernel carries around the files for everything and is much bigger than just the files ...
5
votes
1answer
5k views

How to extract text from a large file, starting at first occurrence of string?

I have a large log file I want to review. All the bad stuff starts at the certain occurence of an error string. I want to then look at the last x lines from that point and see what might have caused ...
1
vote
2answers
130 views

What is the meaning of “var=${str=expr}” in linux shell?

What is the meaning of "var=${str=expr}" in linux shell? Who can explain it for me specifically?
0
votes
1answer
156 views

Fedora20 not turning on

I installed Fedora20. After I turn On my system, it says "Oh no! Something has gone wrong. A problem has ocurred and the system can't recover. Please contact a system administrator". I re-installed ...
2
votes
0answers
185 views

Issues with file ownership after git push

I have a server at home running Ubuntu 13.10 configured as webserver and git repository. If I push my project from my system to the server a post-receive hook is executed that moves the files (...
1
vote
1answer
337 views

For my own DNS server, “dig … @ip-address” works, but “dig … @domainname” does not

I've recently begun virtualizing servers - one of which is a DNS server running BIND 9 on Debian 7. My DHCP server correctly issues it as the primary DNS for the network, but I get the following ...
2
votes
1answer
1k views

mounts aren't case-sensitive

I mounted a few drives from Linux boxes in my network, but those mounts aren't case-sensitive. The mount command I used ( from the man mount.cifs, case-sensitive should be the default ): mount //10....
3
votes
2answers
2k views

How do I use the terminal SCREEN when chrooted?

How do I allow a user to use SCREEN on a chrooted user? I have tried everything but I keep on failing. I need the user to be able to use SCREEN when they are logged in bash as a chrooted user.
1
vote
1answer
149 views

how to create ubuntu installable iso image from files

this might be a quite silly question but I lack linux knowlege so here it is... I have an ubuntu VPS from which I need to create a development environment under my WMWare. So I wonder if the ...
1
vote
2answers
473 views

How to properly specify boot extra entries for nixos

Nixos has a configuration option in the manual for specifying extra entries in the grub menu boot.loader.grub. extraEntries but I can't get it to work with the examples in the manual. The idea is to ...
6
votes
3answers
2k views

saving notes against a file on linux

I want to save notes against a file on linux. I want to save meta data about a file, because the file names are restricted in max length. so how to save notes or comments about a file on linux so ...
22
votes
1answer
19k views

How can I use tar command to group files without compression?

I have a very large folder of 120,000+ files. and I need to move them to another location on my same machine (same partition). I'd like to use the tar command to group them up as a single unit and ...
3
votes
2answers
327 views

Is there a way to create a command line wrapper for a bash file?

The title says it all. I would like to type "run" in the command line and it would execute /pathtoscript/script.sh. Thank you!
16
votes
2answers
19k views

How to check if a Socks5 proxy works

Is there an easy way, preferably by using the Linux terminal, to check if a Socks5 proxy works?
0
votes
1answer
178 views

What to do when you can't find how your device was registered?

Before Linux Kernel 3.0 (2.6.39) I can run the following command: # ifconfig wlan0 up Now I can't. I got an error saying that this device was not found. I've tried to unplug my usb dongle, plug and ...
0
votes
1answer
244 views

Btsync: only three of five shares synced

I try to sync 5 shares from a Win7 computer to a linux box. The Linux box is configured by the following config. I experimented quite a bit with the settings but I only can get 3 of five shares synced....
1
vote
1answer
185 views

Does `ro` matter in CD-ROM mounts?

As far I know, /dev/cdrom usually provides a read-only device. However, some sources suggest to add ro in the /etc/fstab and others not. Is there a difference between /dev/cdrom /mnt/cdrom auto ...
1
vote
2answers
158 views

USB Device Port Affinity in Linux

I'm running a linux machine (Ubuntu 10.04) inside of an autonomous submarine that has many USB devices attached to it such as cameras, usb->serial devices, etc. Unfortunately, every time the machine ...
0
votes
1answer
37 views

Nano usablely open second file

Is it possible to open second file into Nano text editor not by browsing files in program interface (it's not so usable because you can't do nothing like search etc in it) but in command line or in mc ...
2
votes
0answers
158 views

Multi-boot encrypted operating systems on EFI

I'm getting ready to "redo" my desktop computer, encrypting all of my partitions as I install the operating systems. I currently boot with EFI. I'm looking to install both Ubuntu 12.04 (really ...
25
votes
2answers
2k views

What problems does udev actually solve?

For that matter, what exactly was wrong with a bunch of static files in /dev? It's apparently unsatisfactory enough for developers to have reinvented this wheel by my count 3 times now (devfs -> udev +...
0
votes
0answers
111 views

My group (according to /bin/id) has rw access to a Char device but access is denied

I am in the group graphics shell@lt03wifi:/ $ id uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),...
0
votes
1answer
676 views

Linux/Postfix with relay: I can openssl to relay host on port 465, but postfix does not seem to connect

This looks like a tough one to me: I'm configuring postfix on my local home server running ubuntu server 14.04 LTS I was able to send outgoing mail through my relayhost on port 26, everything worked I'...
1
vote
1answer
77 views

Multiple File Splitting in Windows or Linux

We have a 21TB LUN full of images that are approx 600K in size in multiple sub folders on the disk. We are trying to split the 21TB LUN into 8 smaller LUNs that are about 2.6TB a piece in order to ...
0
votes
2answers
152 views

Slow LAN connection on one machine but not another

I am using the same ethernet cable on two different machines and getting two incredibly different results. The following tests were done on a Windows 7 desktop and a Linux laptop. On my laptop, ...
1
vote
1answer
36 views

How can I change the amount of data copied back into RAM when resuming in Linux?

Normally when I shut down my computer I hibernate. On the next boot I then resume. My problem is, that it seems that Linux just copies the least amount of data that is needed back into ram, because ...
6
votes
1answer
2k views

Compressing a file in place - does “gzip -c file | dd of=file” really work?

In the question How can I compress a file on Linux in-place, without using additional disk space?, one answer proposes to simply use gzip -c file | dd of=file I tried it (on Debian Linux), and it ...
5
votes
2answers
288 views

Restrict device ownership to root only. But why?

NSA's Guide to the Secure Configuration of Red Hat Enterprise Linux 5 recommands restricting device ownership to root only. So my question is why should we restrict device ownership to root? And ...
18
votes
1answer
8k views

How to exclude rsync excludes from delete?

I'm using rsync to sync files across multiple machines, using the following: rsync -az -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" \ --delete --delete-excluded --force --...
7
votes
2answers
25k views

How to delete files in linux older than 1 year? [duplicate]

Possible Duplicate: How do I delete files greater than a certain date on linux How to delete all files in current directory and it`s sub directories older than one year?
0
votes
1answer
50 views

How can I know what subfolders rm -rf attempted to delete first?

I mistakenly run rm -rf on a wrong folder and than cancel the operation after two seconds. The folder is quite big with many subfolders and maybe 1% was deleted. How can I know what subfolders rm ...
2
votes
2answers
2k views

Detect PCI vs. PCI-E

I have remote access to a computer, and I need to find out what kind of expansion slots is has, if they are PCI, or PCI-E, or something else. How can I do this from a shell? What commands are there ...
11
votes
4answers
18k views

How to compare file timestamps in bash?

How do I compare the timestamp of two files? I tried this but it doesn't work: file1time=`stat -c %Y fil1.txt` file2time=`stat -c %Y file2.txt` if[$file1time -gt $file2time]; then doSomething fi ...
1
vote
0answers
22 views

How to stop existing user appearing in lastlog?

-l, --no-log-init is available in useradd, but not in usermod. How can I modify a user in this manner? And how does it work anyway?
0
votes
1answer
118 views

How to get the time information of the files after find | grep keyword command?

Now I know how to use find | grep keyword to get the file I want. But after that, how should I know the size, create_time info of each file I found? For example, after find | grep tutorial, I got ...
8
votes
2answers
189 views

Why has 'cat' this strange time behaviour?

I'm using cat to pipe different files into one big file. The number of different files varies, from two files up to ten, but the total size of all files is always the same (a couple of GB). My ...
7
votes
3answers
9k views

Tell aptitude to ignore broken package

I installed a Amsynth from Lucid in Karmic using: dpkg --force-depends-version -i amsynth_1.2.2-1_i386.deb The reason for installing the Lucid version is because Karmic version is 3 years old and ...
2
votes
1answer
103 views

Linux module blacklist GUI

Is there a GUI like application that lists all the kernel modules that are inserted at boot-time, with a little description and with an option to remove them? P.S. I'm aware of the manual mode with ...
9
votes
1answer
3k views

What is the file “libpeerconnection.log”?

I never had before the file called libpeerconnection.log. If I delete it, next time that I begin a new linux session, immediately appears. I found it in my :~$ home folder. I open it and the file is ...