Most Popular

1500 questions
100
votes
10 answers

Linux: How to find the device driver used for a device?

If my target has one device connected and many drivers for that device loaded, how can I understand what device is using which driver?
Deepu
100
votes
3 answers

How to rsync multiple source folders

I want to rsync multiple sources and I wonder the best way to achieve that. e.g. /etc/fstab /home/user/download I thought about 3 solutions : Solution 1 multiple call to rsync rsync -a /etc/fstab bkp rsync -a /home/user/download bkp con : harder…
user1437346
  • 1,131
100
votes
8 answers

Is it possible to check where an alias was defined?

An alias, such as ll is defined with the alias command. I can check the command with things like type ll which prints ll is aliased to `ls -l --color=auto' or command -v ll which prints alias ll='ls -l --color=auto' or alias ll which also…
polemon
  • 11,431
100
votes
3 answers

How to step-into, step-over and step-out with GDB?

I typed help while I was in the GDB but didn't find anything about step-into, step-over and step-out. I put a breakpoint in an Assembly program in _start (break _start). Afterwards I typed next and it finished the debugging. I guess it was because…
Pichi Wuana
  • 1,289
100
votes
2 answers

Why do we need to use visudo instead of directly modifying the sudoers file?

I understand that if you want to modify who can use sudo and what they can do with it that you should use visudo. I know I'm not supposed to directly modify the /etc/sudoers file myself. What is it that visudo does that directly modifying the file…
Dason
  • 1,102
100
votes
11 answers

Is there a way to stop having to write 'sudo' for every little thing in Linux?

I'm going to be doing a fair amount of PHP work shortly, and I'm interested in learning RoR, so I installed Linux Mint 12 in my VirtualBox. The most frustrating aspect of the switch, so far, has been dealing with Linux permissions. It seems like I…
100
votes
10 answers

How to work around "Release file expired" problem on a local mirror

I have a local mirror (created with debmirror), and when I run apt-get update after a few days, I get this: E: Release file expired, ignoring file:/home/wena/.repo_bin/dists/sid/Release (invalid since 14h 31min 45s) How do I work around that?
tshepang
  • 65,642
100
votes
2 answers

For loops in zsh and bash

I have noticed there are two alternative ways of building loops in zsh: for x (1 2 3); do echo $x; done for x in 1 2 3; do echo $x; done They both print: 1 2 3 My question is, why the two syntaxes? Is $x iterating through a different type of…
100
votes
13 answers

Do I need swap space if I have more than enough amount of RAM?

From what I understand, the purpose of a swap partition in Linux is to free up some "not as frequently accessed" information from RAM and move it to a specific partition on your harddrive (at the cost of making it slower to read from or write to),…
IQAndreas
  • 10,345
100
votes
2 answers

What is kernel ip forwarding?

I have seen on many blogs, using this command to enable IP forwarding while using many network security/sniffing tools on linux echo 1 > /proc/sys/net/ipv4/ip_forward Can anyone explain me in layman terms, what essentially does this command do?…
Madhur Ahuja
  • 1,499
  • 3
  • 12
  • 14
100
votes
6 answers

How do I refresh Gnome 3 applications

I just added and modified a .desktop file in my /home/user/.local/share/applications folder. Is there any way to refresh the icon and caption in the list of applications without logging out?
Peter Turner
  • 1,654
100
votes
5 answers

Pasting X selection (not clipboard contents) with keyboard

I'd like to be able to paste the X selection using the keyboard. Currently I have to use the middle mouse button to do this. I gather that faking a middle mouse button press is fairly easy to do, but such a solution would also require moving the…
intuited
  • 3,538
99
votes
2 answers

Use shared libraries in /usr/local/lib

I have build some libraries from sources, and the files after make install are in /usr/local/lib For example, in my case I have the file libodb-2.2.so which is in this directory. However when I launch the executable that has linked with libodb, I…
99
votes
12 answers

git pull from remote but no such ref was fetched?

I have a git mirror on my disk and when I want to update my repo with git pull it gives me error message: Your configuration specifies to merge with the ref '3.5/master' from the remote, but no such ref was fetched. It also gives me: …
Micromega
  • 4,211
99
votes
5 answers

How to check available package versions in rpm systems?

If I want to check available versions of a package in Debian, I run apt-cache policy pkgname which in the case of wajig gives: wajig: Installed: 2.01 Candidate: 2.01 Version table: *** 2.01 0 100 /var/lib/dpkg/status 2.0.47 0 …
tshepang
  • 65,642