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

2
votes
1answer
679 views

How to check Intel iGPU frequency on Linux?

I own Intel Haswell G3420. At stock its iGPU has 1,15 GHz turbo frequency. In my UEFI I overclocked the iGPU to 1,5 GHz and added voltage. However the framerates in both benchmarks and games are the ...
0
votes
1answer
125 views

Teamviewer without password

I have a Linux computer with TeamViewer installed, and Windows computer with TeamViewer installed. I have both computers associated with my account, so I can see them both in my "Computers & ...
0
votes
1answer
108 views

rm -rf cannot remove some folders on xfs system

The nas is running on a cut down version of debian. I've ssh onto the box and ran rm -rf of their directory rm: cannot remove 'lfamb32/backup-11-07-2013 - bits/Local Disk (C)/New Volume (D) - Lamb ...
2
votes
3answers
3k views

Check if my machine is 64-bit capable on Linux (Ubuntu)?

Similar to this question, I have a 32-bit OS (Ubuntu), but I want to know if my machine is 64-bit capable... I checked out the question, but the answers are Windows-specific... I also checked this ...
0
votes
0answers
84 views

Tape backup with compression

I would like to backup a NAS to a series of LT02 tapes, (200 gigs uncompressed, 400gigs compressed.) There are about 700 gigs of data to back up. I initially tried cpio, first trying to set hardware ...
0
votes
1answer
531 views

pass filename(with space in the path) as argumant to a wine app in a bash script

I want to luanch an wine App with passing a file as argument. I've two file, with the first I don't have any problem but when there is a space in the path wine can't handle the address properly. here ...
0
votes
1answer
92 views

how to configure apt-get to use multiple repository components or sections

My ubuntu 14.04 installation shows the apt-get uses only one respository section: $ apt-cache policy Package files: 100 /var/lib/dpkg/status release a=now 500 http://archive.ubuntu.com/ubuntu/...
1
vote
1answer
119 views

Putty: highlighting copying

I currently use Putty at my work, and I am always fascinated by how useful the highlight copying tool is. Is there some way I can get this same feature on my System 76 laptop when I am in the terminal?...
11
votes
5answers
15k views

How can I copy a (big) directory over another changing only the files that differ?

I have directory a and directory b. They are big. b is almost identical to a. "almost" means that 4-5 files differ, and I don't know which they are. I want to copy b over a, but only the files that ...
0
votes
2answers
5k views

SSH from Windows to Linux VM. Cannot invoke firefox: no display specified

I have been at this for the past two days and still no luck. $ firefox Error: no display specified $ firefox & [1] 25977 Error:no display specified ^C ^C [1]+ Exit 1 I am on a Windows7 ...
0
votes
2answers
211 views

How to silence a notebook the second-most radical way? Performance does not matter

This sounds like a rather general question, but I did not find specific advice if one is eager to sacrifice performance for this task. The case: I am writing a thesis, and I need complete silence for ...
1
vote
0answers
48 views

How do you delete a directory entry from a directory, but not delete the directorys contents?

Here is the situation, I have a directory that some how ended up with entries from somewhere else in the file system. An example: Let's say I have a structure based on year/month/day/, and in that ...
5
votes
1answer
154 views

How to hide all windows except the one that I'm using?

I have set a shortcut to hide all the windows with Ctrl + Alt + D. But now I would like to set one that hides all except the currently active window. Is that possible?
1
vote
1answer
85 views

Linux RAID on top of LVM

I have LVM configured on top of RAID, but I was wondering how one would do RAID on top of LVM. Here's the scenario: I have a RAID 6 array with 4 X 3TB drives. 1 drive failed, badblocks reported 73 ...
6
votes
5answers
5k views

How to color grep output

When I type memcached -vv 2>&1 | grep --color=always "SET\|GET" I get nice memcached stats GET AR-City-1 GET rest-part-241 SET rest-part-241 Value len is 685 GET main-rest-...
0
votes
1answer
96 views

Does an awk script or command execute itself to every line it reads?

I got an awk script named my_awk: #!usr/bin/awk -f { if ($1 == "#START") { FS=":";} else if ($1 == "#STOP") { FS = " ";} else { print $3} } And I invoked it through: cat my_file | awk -f ...
0
votes
1answer
87 views

Fedora keyboard shortcuts fail

I use a bunch of Fedora keyboard shortcuts, things like ctrl+alt+t to open a new terminal. I have the following keyboard shortcut setup: name: syncSrc command: ~/Scripts/syncSource.sh And i ...
-1
votes
2answers
398 views

How can I run badblocks and smartctl over SSH, close SSH without interrupting badblocks and smartctl? [duplicate]

I have a server with a hard drive I'd like to test using smartctl (smartmontools) and badblocks. I would use smartctl first, then badblocks. My question is three parts: How can I run the commands ...
1
vote
0answers
80 views

how to create a user non-login but can use ssh -CD create local socks proxy

I want share my VPS to other users, but they can only use it as a socks proxy server. It can allow ther user do ssh -CD 1080 -N user@host. But he can never login to the server, and modify any file. ...
0
votes
1answer
3k views

Clear remove of additional Python from usr/local/ on Ubuntu

I need to use a machine at work (12.04 Ubuntu box) that has two versions of Python installed: the default 2.7.3 one from the /usr/bin and a 2.7.5 one that was installed into usr/local/bin. The ...
0
votes
1answer
254 views

Cant connect to eth0 after wlan0 sharing with iptables

I wanted my Ubuntu server to act as a wifi hotspot. So I set up hostapd to allow wifi connections. I then setup dnsmasq to provide the DHCP settings. I then added the following iptables rules, so ...
1
vote
0answers
42 views

Attempting Multi boot with Truecrypt (Full Disk)

I am wanting a Windows 7 multi boot with a Linux lvm, currently I have: sda sda1 Windows 7 sda2 Windows page partition sda3 extended sda5 Linux system 1 /boot sda6 Linux system 2 /boot sda7 ...
0
votes
1answer
180 views

Automatic resolution when converting PDF to images

I have some scanned PDF files that I want to process using ScanTailor. To do that I need to extract images (as TIFF). I have been using GhostScript as follows: gs -sDEVICE=tiffgray -r400x400 -...
0
votes
1answer
527 views

Block All Traffic and Allow from Defined IP only in IPTABLES

I want to create a gateway firewall for my network . I want to block all the internal traffic on gateway and allow it from two computers only . On gateway --> eth0 is network card in gateway PC ...
0
votes
1answer
49 views

String pattern searching

I'm new to linux. I want to be placed as a System Admin. I attended an interview at Amazon. They asked me to write a cmd to find the string that starts with 's' and ends with 'a' in a file. I know ...
16
votes
5answers
14k views

Linux Shell: Copy output into clipboard w/o using the Mouse?

Is it possible to copy the output into the clipboard without using the mouse? For example, I would like to do something like this: $ pwd >> clipboard
2
votes
3answers
82 views

What's Linux test -a command test for?

Please take a look at the following code, snap=snapshot.file touch snapshot.file-1 $ [ -a $snap-1 ] && echo yes yes What does the test -a command tests for here? I tried info ...
0
votes
1answer
3k views

OpenWRT and iptables: redirect all traffic from ip1 to ip2

I'm aware of other questions with the same topic, but I couldn't get it to work. I'd like to forward inside my local network all traffic from ip1 to ip2. Only from inside the network, no outside. I ...
0
votes
1answer
48 views

What's the strategy used by sort when field not found?

I got a file named test, its content is like 111 222 11 22 111 223 12 22 33 11 2 25 222 331 11 2 33 2 1 33 33 22 33 I used: sort -bk2.3 test But the result confused me, those lines which doesn't ...
0
votes
0answers
2k views

Ubuntu black screen before installation

I was trying to install Ubuntu 14.10 from DVD on my machine where before i always had windows. CPU AMD Vision quad Core 16 gb ram AMD 7000 Series Graphic chipset Created partition and set up boot ...
1
vote
2answers
1k views

Moving /tmp to a different mounted drive

I've mapped my MySQL datadir to a different (and bigger) disk with 900GB [root@web ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 40G 24G 14G 64% / tmpfs ...
1
vote
2answers
764 views

How to move and rearrange partitions in Ubuntu

I have a mess of partitions. This picture pretty much sums it up. I don't understand why there are small unallocated areas. My goal is to move the whole /dev/sda4 partition to a new hard drive (...
0
votes
1answer
165 views

/dev/zero or /dev/null for redirect?

I understand that the standard to redirect to is /dev/null, but why not use /dev/zero? Does it not have the same effect? Another question, what do all the 1>> 2>> &>> >>&...
0
votes
1answer
382 views

Permission denied on sudo remove

I have two users userA and userB. userA has permission over a file named cache. I want to give permission to userB to remove the file. I have made following entry in /etc/sudoers file : userB ALL=(...
2
votes
3answers
809 views

Add a sudoer non-interactively from command line

(On Centos through Docker) I know that I can add a sudoer using visudo. Is there a way to add a user to the sudoer list straight from the command line, so I don't have to do it interactively? I'm ...
17
votes
3answers
19k views

What is the difference between fsck and e2fsck?

What is the difference between the linux disk error-checking tools fsck and e2fsck?
3
votes
4answers
12k views

How do I know the gzip compression level?

Given a gzip compressed file, how do I know what compression level (1-9) was used for it?
1
vote
1answer
561 views

pscp and UTF-8 characters

I'm having trouble copying files with UTF-8 characters using pscp on Windows. I'm using command line for that and following command: chcp 65001 pscp -scp -p -pw {pass} -batch "user@remote_host:/...
0
votes
3answers
11k views

GUI file manager for ssh/linux (with a shell?) [closed]

I am using a server where I need to login twice. The first time I login as my boxname and password. The 2nd login is 'root' so I can access the content of the box (I don't understand it but that hasn'...
0
votes
1answer
27 views

Lost Directory structure

Made a stupid typo and moved all my directories into cyberspace and have no idea where they went I accidentally moved them into /etc/Public but when I tried to move them to ~/Public they are no way to ...
0
votes
0answers
45 views

Computer shutdown when holding keys for too long

I'm using a Manjaro Linux with an XMonad desktop. I'm still not able to reproduce the exact conditions of the bug but very ofter when holding a key for very long, the keyboard will freeze (just that, ...
-4
votes
1answer
183 views

What username and password should be used when mapping a network drive

I have an old windows 7 machine connecting to local linux server and have mapped to the server. And just got a new windows 8 machine, which can access the linux server. What I am trying to do is to ...
1
vote
5answers
2k views

How to forward traffic using iptables rules?

I am new to iptables and I have been doing Google searches for a few days now without finding a good solution to this problem. I have computer A with a public ip address (say 192.0.2.1) that can ...
5
votes
2answers
181 views

Making custom, single-character directory mappings like ~ > $HOME

We all know that ~ maps to $HOME or /home/user. Is it possible to make other mappings like this on other characters (@,_)? A possible workaround I thought of was to use variables (which require at ...
0
votes
0answers
180 views

How to solve kernel panic issue

I have a Debian OS upgraded from to 2.6 to 3.4 in my PC. All of a sudden some basic commands like ls and sudo were not working (by mistake I deleted some files in the root folder). I was getting a ...
1
vote
1answer
164 views

Keep external hard disk running regardless of inactivity

After being inactive for about an hour, my Seagate 3TB hard disk becomes inaccessible to programs (such as Deluge). The moment any file/directory related tasks are initiated nautilus prompts me with a ...
0
votes
0answers
150 views

Gitolite Setup fails

I am getting the below error when I am trying to setup the gitolite. FATAL: errors found but logfile could not be created FATAL: /home/git/.gitolite/logs/gitolite-2014-06.log: No such file or ...
3
votes
3answers
8k views

How to install a program on a DDWRT hacked router

I need to install a program on a linux router. Can this also be done on a linksys router that has ddwrt installed on it? How?
0
votes
1answer
55 views

ssh tunneling on multi systems

I would like to ssh-forward id_rsa keys from localhost through server 1 to server 2 On the localhost computer I have the id_rsa keys which get added to ssh-agent for forwarding to a remote server. ...
0
votes
0answers
85 views

What HID/Module does Air mouse use in Linux?

I was thinking about developing a module for running a Air Mouse. I am not sure as what module s used to carry out the operation done by air mouse. Is it under HID? (I am talking about a wireless Air ...