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
4answers
3k views

How to list files recursively and sort them by modification time?

How do I list all files under a directory recursively and sort the output by modification time? I normally use ls -lhtc but it doesn't find all files recursively. I am using Linux and Mac. ls -l on ...
6
votes
2answers
10k 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
41 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 ...
0
votes
2answers
691 views

Export display to an iMac

I have a 12" Linux laptop with HDMI, DisplayPort and VGA ouputs. I can successfully export a display of a resolution up to 2048x1536 to any vanilla display or TV. I also have a 27" Mid-2010 top of ...
0
votes
2answers
670 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 ...
6
votes
4answers
9k 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 ...
2
votes
1answer
29 views

IPSet with IP6Tables ERROR

Can someone please solve my headache and tell me how to fix this? [root@www ~]# ip6tables -I INPUT -m set --match-set blacklist6 src -J DROP ip6tables v1.4.7: Couldn't load match ...
0
votes
0answers
9 views

0711-317 ERROR: Undefined symbol

I am installing a C package named expat-2.1.0 in AIX 6.1 machine. While performing a gmake it popping the below output. /bin/sh ./libtool --silent --mode=compile gcc -std=gnu99 -I./lib -I. -g -O2 ...
1
vote
0answers
4 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
20 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 ...
7
votes
5answers
13k views

What's wrong with my bash script to keep last x files and delete the rest?

I have this bash script which nicely backs up my database on a cron schedule: #!/bin/sh PT_MYSQLDUMPPATH=/usr/bin PT_HOMEPATH=/home/philosop PT_TOOLPATH=$PT_HOMEPATH/philosophy-tools ...
8
votes
2answers
180 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
7k 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
17 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 ...
8
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 ...
0
votes
0answers
12 views

Why does my cursor disappear in Ubuntu Linux, but appear again when closing it for a minute?

I have a problem with my mouse in ubuntu. The cursor disappears sometimes and I can't do anything but close my laptop for a minute, after which the cursor will appear again! What should I do with ...
0
votes
3answers
6k views

ping can't resolve hostname, but nslookup can

ping tells me that it can't resolve some hostname ("ping: unknown host domain.company.local") in a URL but when I use host or nslookup on the same computer on the command line, the resolutions works ...
7
votes
5answers
6k views

Linux file system for a big file server

I would like to know, from more experienced people, what would be the best choice of file system to use for a file server having more than 20TB of hard disks. Personally I always used EXT3 (back in ...
8
votes
3answers
3k views

How to use locate in cygwin?

I'm trying to use locate to find files, but I'm not getting anything back from the program. It can't even find files that are in the current directory. How do I make locate work?
8
votes
4answers
5k views

How to truncate file by lines?

I have a large number of file, some of which are very long. I would like to truncate them to a certain size if they are larger by removing the end of the file. But I only want to remove whole lines. ...
8
votes
4answers
2k views

How to recover open but deleted file on Linux using ln instead of cp?

I have a file that's downloading (from a source that's hard to re-download from), but accidentally deleted from the filesystem namespace (/tmp/blah), and I'd like to recover this file. Normally I ...
365
votes
7answers
233k views

How can I sort the output of 'ls' by last modified date?

How can I sort the output of ls by last modified date?
0
votes
0answers
14 views

How do I remove a partition inside linux software raid?

I have this SSD disk as sdg which is in software raid (with sdh, it's corrupted but it doesn't matter now) I need to remove partition vg00-data (dm-2) /data What command can I use to do that? OS ...
9
votes
2answers
2k views

How can I remove duplicate files across separate directory trees?

I have two directories: old/ and new/. Some of the files in old/ are duplicates of those in new/. Some merely have the same name, and a few may even have identical content but different names. I'm ...
0
votes
0answers
4 views

Separate MPD audio output on single PC

I've setup MPD as a jukebox in my office. However it runs on my PC so eg. IM notifications are also played on the speakers. Is it possible to separate audio output on front and back audio panel so ...
0
votes
1answer
17 views

Automatic system for os image creation/recovery

I will be doing some laptop cleaning with full disk format and os reinstal of Win7. And I thought about creating sepereate linux partition for os partition image. I know that It can be easily done ...
0
votes
1answer
123 views

I broke SSH by using chmod on an EC2 Instance — How do I correct?

I have been running an Amazon EC2 Instance for a while, and recently accidentally changed permissions/ownership on folders recursively. I can no longer SSH into the instance. I do not recall what the ...
9
votes
2answers
2k views

Same file, different file size

I made a backup from my FTP server, with lftp and Transmit (Mac app). Everything is fine, but there is a different in file size for 1-2 files, but they are identical. First file: ...
10
votes
2answers
666 views

How to cut a file to a given size under Linux?

I want to shrink a file's size by brute-force, that is, I don't care about the rest, I just want to cut the file, say by half, and discard the rest. The first thing that comes to mind is Perl's ...
0
votes
2answers
77 views

linux rename home folders and lost configuration

I've changed my Home folders name, like, "Documents" I changed to "docs", "Downloads" to "downloads" and "Pictures" to "img".. but now my Desktop is not well configured, for example, my ...
2
votes
1answer
22 views

Hostname is not displayed appropriately on command prompt & syslog messages

I try to set my hostname as 0.6.0.07252014 but when i see on command prompt and syslog messages, it is not getting displayed appropriately. Entered hostname: 0.6.0.07252014 Command prompt output: ...
0
votes
3answers
2k views

Can I chroot to a linux environment from windows

I want to know if it is somehow possible to chroot into a Linux system from Windows, or, is there some technique or hack to achieve that?
1
vote
3answers
15k views

Can't connect with putty to a Linux server

I can't connect with Putty to a Linux box. In the putty log I only get 3 lines and the last line is "Server unexpectedly closed network connection". FTP and ping to the Linux box works. Putty is ...
0
votes
1answer
22 views

My USB pendrive always goes read-only, what can I do?

I have a transcend 16 Gb usb pendrive. I save my daily works to it. I wrote a bash script to copy the contents of my working directories to the pendrive. The bash script contains only "cp" and "mkdir" ...
0
votes
0answers
15 views

Ubuntu doesn't boot after fsck on /

I had this problem with Ubuntu when it boots: http://askubuntu.com/questions/392720/the-disk-drive-for-tmp-is-not-ready-yet-s-to-skip-mount-or-m-for-manual-recove The problem appeared from nothing, ...
0
votes
0answers
4 views

Migrating old knotes to a knotes on a new KDE installation

I want to migrate the KDE knotes database from an account that existed of a Fedora 17 installation (kdepim 4.10.5) to another account that exists on a Fedora 20 installation (kdepim 4.13.3). I have ...
12
votes
3answers
11k views

How to pad a file with “FF” using dd?

How to pad a file with 0xFF using dd? This command will pad the output file with zeroes until the file size reaches 100 KB: dd if=inputFile.bin ibs=1k count=100 of=paddedFile.bin conv=sync ...
0
votes
0answers
13 views

mod_auth_token on a directory listing?

Apolgoies for the noobiness but I'm clueless when it comes to this! What I'm wanting to do is offer a directory listing to visitors so that they can download files provided. I was told that ...
0
votes
0answers
13 views

recover deleted files in linux cluster

I just deleted some files that were very critical to my project on a linux cluster .I was wondering if there is a specific way to recover them. This is very critical and I would appreciate a detailed ...
0
votes
1answer
2k views

How to verify mirror configuration on Red Hat Linux?

I have an IBM blade server and we've installed RedHat Linux on the machine. How can we check if we have both disks running as a mirror, or if everything is only running on a single disk? What linux ...
0
votes
0answers
8 views

emacs ispell can't handle m-dash

When I try to spellcheck in emacs (using M-x ispell) on a file with an m-dash separating words without a space, I receive the following error: ispell-process-line: Ispell ...
2
votes
1answer
2k views

How to use NAT iptables rules for hostapd

My PC is equipped with two net interfaces - wlan0 and eth0. I want to use WiFi port as access point on wlan0. So i use hostapd facility and it works properly in routing mode in local network. Users ...
0
votes
0answers
26 views

Where did my memory go on linux (no cache/slab/shm/ipcs)

This is a headless server with 8GB RAM (kernel 3.12)... even after only a few days, i get low on memory. in fact, this server has OOMed a few days ago... something is losing memory, but i don't know ...
0
votes
1answer
15 views

Get WiFi router information in Linux terminal

What Linux terminal commands can help me gather information about all WiFi routers my laptop can detect? I mean things like name, channel, encryption type etc. (Linux, Debian)
3
votes
1answer
2k views

Permission denied while mounting samba cifs share on linux

I have a samba server set up on a Linux computer that uses winbind on an AD domain. Everything seems to be working but I haven't been able to mount a samba share on another machine. Right now, I would ...
0
votes
1answer
30 views

Mavericks startup script

I am trying to write a small script to launch when user logs on. I have searched and got the script to work but unable to run at log on with .plist We have active directory setup. When the user logs ...
1
vote
2answers
47 views

Accidental Windows to Linux Overwrite

I wanted to install Linux for my system and was expecting it to dual-boot and I would have double OS in my system. But I ended up pressing the "Use Entire Disk..." option thing (Not 100% sure if ...
0
votes
0answers
23 views

Disappearing Crontab, Odd Files

I have a number of Debian-based systems running on an ARM-based SBC connected to a network and they've been running for years. All of a sudden, when I log onto several devices, the cron file is ...
0
votes
1answer
32 views

Where to download missing libc.so.6

I recently accidentally deleted the file /lib/x86_64-linux-gnu/libc.so.6. This file is needed by most programs, so my computer is basically broken and I can only access the hard drive through a live ...
0
votes
0answers
17 views

In Linux count number of key presses except those in the browser [migrated]

I want to count the number of key-presses in Linux, except those in the browser. There was a solution proposed here but not sure how to ignore browser key-presses.