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

1
vote
4answers
4k views

Rsync root files between systems without specifying password

This seems very tricky to me. I've set up my two systems so that I can rsync files between them as me, without specifying password. Now the the problem is to rsync files that belong to root. On both ...
1
vote
1answer
1k views

How can I run mogrify, but prefix the filename?

I have 300k+ jpg files in the same directory. Files are like: /covers 0788862281217.jpg 0788863155104.jpg 7888311516341.jpg 7888370920479.jpg 7888497074277.jpg I need to batch resize saving the ...
1
vote
4answers
2k views

Grub doesn't show OS selection menu when booting a dual boot setup

I have installed windows and Linux(ubuntu) on the same machine. Now the problem is when I start my machine, It goes directly to Linux and does not ask me for the selection of OS either I want to load ...
1
vote
1answer
7k views

Removing files older then 1 month, but leave files created at the 1st day of the month

I'm trying to remove some archive files from a folder on a CentOS fileserver with a cronjob. The requirements: Remove files of the last month The .tgz-file of the first day of the month should be ...
1
vote
2answers
2k views

On a linux shell, what is echo $? supposed to do?

I came across a shell script where echo $? was used. What does this mean . How can we use this in a shell script. Are there any references for this.
1
vote
4answers
2k views

What is the difference between “drive letter” and “volume label”

I am under the impression that "volume label" is available on linux, too whereas "drive letter" is windows specific. Where can I read that up?
1
vote
1answer
109 views

How do I recover my data? [duplicate]

Possible Duplicate: Recover data loss from accidental quick format Are there any good free undelete tools for Windows? [closed] Formatted hard drive, forgot to back up a text file. How do I ...
1
vote
1answer
921 views

What routes must be set (in Linux) to allow Internet access through given interface without setting it default?

I am trying to solve a task with routing and OpenVPN's configuration. After setting the connection, I don't want it to become defaut route to anything, but rather want to use its interface for this ...
1
vote
5answers
11k views

“More than one remote source not supported” when copying files via pscp

I need to copy a file from Windows to Ubuntu 12.04. I have tried using the code below: pscp C:\abc.php username@server: . But it shows an error: More than one remote source not supported How ...
1
vote
3answers
3k views

Linux - Watch a folder and run a command when a file exists

On Debian Squeeze, I'd like for ctorrent to automatically open in a screen session if a new torrent file is placed in a particular folder (/home/torrent). Is there an easy way to, in a script, watch ...
1
vote
3answers
8k views

How to find PID's user name in linux

Can you help me to find the PID's user name, Some time my server got high load. When i top -c, I cannot even find the PID's user name who / which is causing load on the server.
1
vote
6answers
1k views

Why do Linux systems have multiple virtual consoles?

We can switch to a text console by pressing Ctrl+Alt+F<1-7> on the keyboard. What are the uses of these consoles, and why are there multiple consoles?
1
vote
1answer
251 views

Identify files that would be deleted when removing an rsync --link-dest directory?

I have a Time Machine-style backup system set up on my NAS (running BusyBox v1.16.1), using rsync --link-dest as described here: http://blog.interlinked.org/tutorials/rsync_time_machine.html Is there ...
1
vote
2answers
1k views

Why does my MAC address reset after reconnecting?

I use Ubuntu 12. I'm changing my MAC address with ifconfig wlan0 hw ether xx:xx:xx:xx:xx:xx, which works. However when I restart my connection, my computer resets the MAC address to my original MAC ...
1
vote
2answers
2k views

How can I clear the contents of every file in a subdirectory without changing ownership / permissions?

I can find the list of files using something like: find /path/to/files -type f And I can clear the contents of a single file with any of: > filename echo -n > filename cat /dev/null > ...
1
vote
1answer
1k views

Linux drive automount point path conventions

Like many I have several physical disks installed in my system and I set them up to be constantly mounted to some paths. I want to find a conventional general approach to it. In my experience I've ...
1
vote
0answers
876 views

What are my best options to recover data from a faulty SD micro card (used in an Android cell phone)?

My wife is having troubles while syncronizing the data from the SD micro card of her LG android phone to her portable pc. It keeps remaining stuck forever at a given photo (#21). I tried to access it ...
1
vote
2answers
752 views

CLI Ubuntu lock screen after X minutes

Is there any way of making ubuntu (through CLI) to lock screen after X minutes? I need to do so for example: I'm watching a 2Hours movie, so I need to make ubuntu that after 123 minutes to lock ...
1
vote
1answer
815 views

Using a Linux/Unix terminal to copy many files to a new location

I'm trying to use the a Linux terminal to copy many files to a new location. I tired the command: sudo locate -i *file_I_want* | xargs cp $1 /place_I_want_everything_copied_to/ Which, gives an ...
1
vote
1answer
91 views

How can `which cmd` != cmd?

Can anyone explain this? $ vim --version VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jul 12 2010 12:47:31) $ `which vim` --version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 13 2011 22:52:17) ...
1
vote
2answers
898 views

Is it possible to send a virtual desktop to another monitor on another computer over the network?

I'm running Ubuntu 10.04 Lucid on an Alienware m15x laptop with the proprietary nVidia drivers. GNOME, Compiz, etc. First, I have two computers, an Alienware m15x laptop (which is my primary ...
1
vote
2answers
2k views

Linux: Compressing all .pdf files recursively (.tar)

At the linux command line, I'd like to compress all .pdf files in a directory, any of it's subdirectories and so on - but only .pdf files. I'm struggling to figure out the syntax, any ideas ...
1
vote
2answers
8k views

mounting ext4 fs with block size of 65536

I am doing some benchmarking on EXT4 performance on Compact Flash media. I have created an ext4 fs with block size of 65536. however I can not mount it on ubuntu-10.10-netbook-i386. (it is already ...
1
vote
1answer
630 views

renaming a fat16 volume

What's the easiest way to rename (change the volume label of) a fat16 volume (e.g. on a USB drive) from linux? It seems like mlabel from the mtools package is meant to do this, but the documentation ...
1
vote
1answer
2k views

Linux: Remember path to USB Device

In Linux, Is there a way to remember/change a path to a USB device? In my case, I need linux to remember that my USB serial adapter will stay on /dev/ttyUSB0, but when I unplug it and plug it back ...
1
vote
3answers
9k views

Monitor average CPU usage and RAM usage on one process linux

Is there any way to monitor one process' CPU usage and RAM usage over time on linux? I am trying to change to a cheaper VPS and need to work out what level of CPU and RAM I need!
1
vote
4answers
497 views

Organizing tons of mp3's [closed]

I have a giant library of mp3 and audio files that include songs, audiobooks, personal sound recordings, sound effects, etc. I am completely overwhelmed by the options of having a "media library". I ...
1
vote
1answer
370 views

Where does okular store it's metadata

I want to know where does okular store it's metadata (highlighting and other type of annotations).
1
vote
1answer
2k views

'which' equivalent in Windows [duplicate]

Possible Duplicate: Windows equivalent of whereis? For Linux/Mac I can use which to locate the file. What would be the equivalent to this command line tool of which?
1
vote
1answer
2k views

Windows 7 Disk Management utility doesn't show disk with ext3 (type 83) partition

I have a 2 TB disk in an external SATA dock, formatted with a single ext3 (Linux) partition, which doesn't show up in the Windows 7 Computer Management->Disk Management utility, even as a raw/blank ...
1
vote
0answers
2k views

Ubuntu grub fails to start, error: out of disk

My computer has become quite strange the last days, last week grub stopped working and just halted at the grub prompt. I can manually start the system by writing insmod /boot/grub/linux.mod linux ...
1
vote
3answers
1k views

How to force files together on a Linux partition?

I have a dynamically expanding VDI file which is 14 GB big while the partition itself is only 2 GB. The files are too spread out over the disk so zero-ing the free space and compacting the VDI didn't ...
1
vote
3answers
3k views

Use `less` pager on file with non-standard encoding

I often use the less pager to view logfiles. Usually I use less -F to follow the progress of the log à la tail. However, some logfiles use national characters in a non-standard encoding (Latin-1, ...
1
vote
2answers
1k views

Linux File Permissions & Access Control Query

Let's say I am user bob in group users. There's this file: -rw----r-- 1 root users 4 May 8 22:34 testfile First question: Why can't bob read the file as it's readable by others? Is it simply ...
1
vote
2answers
3k views

Triple-Boot + 4 partition Limit

I just bought a new hard drive so that I could convert my XP-only machine into an XP-Ubuntu-Windows 7 triple boot machine. Since the drive is absurdly huge (1 TB) I wouldn't mind throwing ReactOS ...
1
vote
4answers
2k views

Ubuntu - Create a link to a specified directory so I can easily change to that directory

Is it possible to create a symlink to a directory, like /var/lib/tomcat6/webapps/MyWar that I can access from everywhere? I want to be able to say cd myapp from anywhere in the directory tree and go ...
1
vote
3answers
28k views

Need some help with Terminal Emulator (Android app) commands. (Similar to Linux commands)

I'm trying to follow this tutorial to install Mobile Defense as a system application on my Motorola Droid. I want to use Terminal Emulator and the commands are basically the same. The only two ...
1
vote
1answer
2k views

Linux - Change keyboard configuration at kdm

I'm on Arch linux now but at every restart at the login screen, I seem to be in Azerty when I need a Qwerty keyboard, how I change that ???
1
vote
7answers
685 views

How to copy files to an untrusted computer?

I want to copy files securely from one computer to another, the other computer however isn't trusted and I don't have direct access to it other then giving the owner of the computer instructions. In ...
0
votes
2answers
49 views

How can I install Windows and keep my current files?

How can I install Windows and keep my current files? I want to install Windows without deleting my current filesystem/home. Currently I have 4 partitions, should I delete 3 and keep the ...
0
votes
2answers
70 views

Can I create a bootable Linux live USB flash drive using a Windows computer? [duplicate]

I have a rescued 2013 MacBook Air with a broken screen backlight due to a beverage spill and missing its internal SSD. I don't yet have any OS installed on it. I have access only to (32 bit) Windows ...
0
votes
1answer
23 views

Putty pscp Illegal file descriptor format error

i am trying to backup my checkpoint using putty pscp with the cmd: pscp -r admin@<ip address>:/var/log/CPbackup/backups/R77/<file_name.tgz> D:\test_location_on_windows I get the error: ...
0
votes
2answers
51 views

How do I use ENV{SYSTEMD_USER_WANTS}= in udev rule?

I want to set up a docked.target in my user level systemd. The idea is to run some services to configure my external displays. I currently have this as my rule: SUBSYSTEM=="usb", ACTION=="add", ...
0
votes
1answer
109 views

Wordpress can't upload images due to permissions [closed]

I'm having problems trying to get Media uploads working on my VPS w/ Wordpress. My Apache service is running as user:group apache:apache. My user folder is owned by my user eugene and grouped apache. ...
0
votes
1answer
301 views

Multi-boot: Windows 10 cannot see one ntfs drive

On a computer normally running Windows 7 (sda4) and Linux (Mint, sda5) in dual-boot, I have created two separate partitions (sda6 and sda7) within the same extended partition (sda3) as the Mint ...
0
votes
1answer
22k views

How to upload local file to server through Linux terminal

I am trying to upload local files to server by using Putty or SSH but not getting upload there. Is there any direct method to upload file from local to server from Linux terminal without using FTP ...
0
votes
1answer
146 views

Cloned Linux does not recognize the new flash drive's space?

I installed CentOS 6 into my 4GB flash drive, and everything worked fine until I needed more space. I have another flash drive with 8GB of space (which is all I really need) and so I formatted it with ...
0
votes
2answers
267 views

Install linux from within windows 7

I have an old Windows 7 Toshiba Tecra A9 with a locked BIOS which won't let me boot off anything but the internal hard drive. I sadly lost the BIOS password a long time ago. I am however administrator ...
0
votes
1answer
577 views

Hard drive checking by using dd and md5sum tools

I bought new external USB 3.0 hard drive WD Elements 2 TB and decided to check it by using dd, head and md5sum tools. First I zeroed all hard drive: root@yurko-laptop:/home/yurko-laptop# dd ...
0
votes
1answer
3k views

how to enable java in Browser on Centos 6.5

i already install Java (jdk 6u45 and jre 6u45) in a Centos 6.5 Server, but i don't know why in my browser appears to enable java plugin, these are steps to install java in my machine: rpm -ivh ...