Questions tagged [linux]

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.

Filter by
Sorted by
Tagged with
157 votes
7 answers
271k views

How can I tunnel all of my network traffic through SSH?

Whenever I'm using the internet from an insecure location (such as public wifi) I like to use an ssh tunnel (ssh -D port host) to ensure my traffic can't be sniffed. Unfortunately, there seem to be ...
Jeremy's user avatar
  • 1
137 votes
7 answers
93k views

How to analyse disk usage in command line linux?

du and df are nice, but I don't know how to filter the data they provide the way I do with SequoiaView. I would like to know which are the largest folders and the largest files in a glance.
Jader Dias's user avatar
136 votes
8 answers
212k views

VirtualBox to use dual monitors

I am running Kubuntu Hardy Heron, with a dual monitor setup, and have VirtualBox on it running Windows XP in seamless mode. My problem is, I can't get VirtualBox to extend to the second monitor.  How ...
fnord_ix's user avatar
  • 3,202
104 votes
9 answers
62k views

What is the equivalent of Linux's "~" (tilde) in Windows?

In Linux, we can go to the user home by entering the tilde (~) character after cd: cd ~ How to do the same in Windows? Each time, I need to type: cd C:\Document and Settings\freewind That's too ...
Freewind's user avatar
  • 1,897
83 votes
6 answers
130k views

Using desktop as fake webcam on linux

I want to make a live stream of (a window on) my linux desktop using a free streaming site, using the captured video as a fake webcam. There are many tools for this on windows. ffmpeg allows me to ...
bkconrad's user avatar
  • 961
52 votes
17 answers
58k views

Replace Symbolic Links with Files

Is there an easy way to replace all symbolic links with the file they link to?
Marty Trenouth's user avatar
49 votes
1 answer
137k views

How can I convert multiple files to UTF-8 encoding using *nix command line tools? [duplicate]

Possible Duplicate: Batch-convert files for encoding or line ending I have a bunch of text files that I'd like to convert from any given charset to UTF-8 encoding. Are there any command line ...
jason's user avatar
  • 655
46 votes
2 answers
135k views

Allow specific user permission to read/write my folder

I have a folder /home/samantha/folder that I want to share with the user tom. He can read/write the folder. How do I do that? chown wouldn't do it because I still want to be able to be the owner of ...
Zenet's user avatar
  • 685
38 votes
8 answers
12k views

How do you track which packages were installed on Ubuntu (Linux)?

(This question is very similar to 10458. It was suggested that Fedora and Ubuntu/Debian are different enough to warrant different answers.) As I use any Ubuntu setup I gradually install a number of ...
quark's user avatar
  • 878
38 votes
3 answers
57k views

How do I fork a process that doesn't die when shell exits?

If I run emacs from the shell: $ emacs foo & and then kill that shell, emacs dies. How can I run a command so that it will not die when the shell dies? I found references to nohup, but that ...
sligocki's user avatar
  • 878
32 votes
1 answer
7k views

Is there a way to make bash more TAB friendly?

I use bash on both my Mac and as my cygwin shell. Overall, I'm quite pleased with it. My one complaint however is that its TAB completion isn't as good as Windows Command Line TAB completion. For ...
Frank Krueger's user avatar
21 votes
2 answers
21k views

Simulating a low-bandwidth, high-latency network connection on Linux

I'd like to simulate a high-latency, low-bandwidth network connection on my Linux machine. Limiting bandwidth has been discussed before, e.g. here, but I can't find any posts which address limiting ...
Justin L.'s user avatar
  • 723
21 votes
3 answers
41k views

How to connect to Windows subsystem for Linux from another machine within network?

I set up my Ubuntu WSL instance and am running an SSH server on it. However, when I do ifconfig on the Ubuntu console, my Ipv4 is 172.26.66.223, which is different from my regular machine's ipv4 192....
Victor2748's user avatar
18 votes
5 answers
37k views

Wired to wireless bridge in Linux

I am attempting to set up my Raspberry Pi as a bridge, using Debian wheezy. I have a hostapd.conf: (some details changed for security, and yes, I know WEP is no good)... interface=wlan0 bridge=br0 ...
adrianmcmenamin's user avatar
17 votes
5 answers
54k views

Remap Keys in Linux

I'd like to switch my Ctrl and Alt keys under Linux (to make it more Mac-like). How do I do this? If it helps, I'm running Ubuntu 9.04.
Nate's user avatar
  • 2,001
15 votes
4 answers
27k views

Is it possible to boot Linux from a GPT disk on a BIOS system?

I have an AMI BIOS computer [Asus EB1501P] with a Seagate ST9250315AS 250GB HDD. Is it possible to boot Linux from a GPT disk on such a BIOS system?
SebMa's user avatar
  • 1,803
15 votes
3 answers
39k views

Creating WiFi Access point on a single interface in Linux

I am trying to create a WiFi hotspot or an access point on my Linux laptop. I am using Opensuse Kde 12.3. I found out a software called hostapd which lets you create hotspot but it requires two ...
adityap174's user avatar
11 votes
7 answers
6k views

Time Machine on Ubuntu?

Is there a Time Machine like backup system for Ubuntu? If not, what is the closest thing?
JoelFan's user avatar
  • 3,872
11 votes
4 answers
4k views

Unix tools: what if a file is named minus something?

I'm always wondering: most GNU/Unix tools take options in the form "minus something", sometimes followed by an argument. What if you got a file named minus something? $ ls -f $ rm -f $ ls -f $ mv -f ...
user avatar
10 votes
2 answers
6k views

What do I have to take care of when hibernating both Ubuntu and Windows (dual-boot environment)

I've got both Windows 7 and Ubuntu (finally) installed on my laptop. For the sake of comfort, I usually hibernate Windows instead of shutting it down. And I think when using Ubuntu regularly, there ...
Franz's user avatar
  • 615
10 votes
1 answer
15k views

dd_rescue vs dcfldd vs dd

What are the main differences between dd_rescue, dcfldd, and dd? In what situations would you use one over the other? Why are there three different yet simliar programs?
에이바's user avatar
  • 1,316
6 votes
3 answers
17k views

Setting up a multiseat configuration

I am trying to set up a multiseat computer configuration. In this arrangement, I have a laptop with an external keyboard, mouse, and monitor connected. I would like to allow two user sessions to be ...
JamesGecko's user avatar
  • 2,020
5 votes
1 answer
5k views

How/why does ssh output to tty when both stdout and stderr are redirected?

I've just noticed that ssh user@host >/tmp/out 2>/tmp/err can write something like Warning the RAS host key... ... Are you sure you want to continue connecting (yes/no)? stdout and stderr ...
spraff's user avatar
  • 2,148
3 votes
2 answers
2k views

Echoing output to file while seeing it in console in the same time [duplicate]

So I echo output of my programs ran in terminal by command 2>&1 >> /path/toFile.txt It creates few limitations that I want to overcome: It "freezes" and gives no output in terminal - ...
Szymon Toda's user avatar
  • 1,639
2 votes
2 answers
2k views

How can I open different browsers' windows with different network adapters?

I am trying to test a Wi-Fi network and I need to have the possibility to open different windows of Chrome or Firefox with a specific network adapter (for example, I have two Wi-Fi network adapters – ...
Manuel Boluda Gonzalez's user avatar
2 votes
4 answers
4k views

Linux: How to list all video files with exactly 720p resolution?

I have several video files with different resolutions. Now I want to list only the video filenames with e.g. 720p resolution. I prefer one liners on the bash command line and I can receive helpful ...
Linuxwhisperer's user avatar
2 votes
1 answer
781 views

Rebuild massively fragmented files with a partial image and a list of their sectors

In an attempt to recover as much data as possible off of a failing 3TB HDD, I proceeded like this : I made a surface scan with HD Sentinel, which identified two small damaged areas and about 100 bad ...
GabrielB's user avatar
  • 855
1 vote
1 answer
310 views

Is there a way to have a dynamic system status area in the Linux terminal that updates while one does something else?

I'm thinking for some servers I look after, that after I SSH in to the box it would be very helpful to see things like disk usage, CPU usage and the such in the actual terminal I'm in as I’m working. ...
idic's user avatar
  • 11
0 votes
3 answers
3k views

Convert video into format which is most likely playable on a windows system

I have some flv and mp4 videos, which I need to convert to a format which is playable on an a Windows Vista system (for a presentation). The problem is, that I cannot test the videos on the system on ...
student's user avatar
  • 465
0 votes
1 answer
2k views

How to recursively search FTP server using Linux?

I googled this and found tons of answers, but for one reason or another they just didn't work for me or wouldn't fit the situation. I run DD-WRT third party firmware on my routers. Occasionally I want ...
Kyle H's user avatar
  • 428
570 votes
4 answers
222k views

How to turn off word-wrap in less

Short version: How can I make the less utility in Linux not wrap lines? Long version: Often I need to view huge CSV files using less with hundreds of columns. I frequently only care about the first ...
User1's user avatar
  • 9,342
334 votes
9 answers
114k views

How to append to a file as sudo?

I want to do: echo "something" >> /etc/config_file But, since only the root user has write permission to this file, I can't do that. But the following also doesn't work. sudo echo "something" ...
agentofuser's user avatar
  • 7,407
253 votes
4 answers
451k views

How to convert .ppk key to OpenSSH key under Linux?

I know that is possible to convert .ppk under puttygen in Windows, but how to do that on Linux? Is this possible ?
marioosh's user avatar
  • 3,571
246 votes
11 answers
362k views

What to do when Ctrl + C can't kill a process?

Ctrl + C doesn't always work to kill the current process (for instance, if that process is busy in certain network operations). In that case, you just see "^C" by your cursor and can't do ...
Dustin Boswell's user avatar
243 votes
13 answers
321k views

Batch converting PNG to JPG in linux

Does anyone know a good way to batch-convert a bunch of PNGs into JPGs in linux? (I'm using Ubuntu). A png2jpg binary that I could just drop into a shell script would be ideal.
nedned's user avatar
  • 3,262
140 votes
5 answers
279k views

How can I determine what process has a file open in Linux?

I'd like to determine what process has ownership of a lock-file. The lock-files are simply a file with a specific name that has been created. So, how can I determine what process has a particular ...
Danny's user avatar
  • 1,604
140 votes
16 answers
207k views

How to synchronize the home folder between multiple computers?

I have three computers at home, and would like to have the /home/ folder tree synchronized between the three. Any files/folders (except those hidden) that are modified/added/removed in one of the ...
140 votes
24 answers
243k views

Why is my SSH login slow?

I'm seeing delays in SSH Logins. Specifically, there are 2 spots where I see a range from instantaneous to multi-second delays. Between issuing the ssh command and getting a login prompt and between ...
Peter Lyons's user avatar
  • 1,862
130 votes
14 answers
148k views

How to force GPG to use console-mode pinentry to prompt for passwords?

Using gpg from a console-based environment such as ssh sessions fails because the GTK pinentry dialog cannot be shown in a SSH session. I tried unset DISPLAY but it did not help. The GPG command line ...
ccpizza's user avatar
  • 7,803
129 votes
11 answers
559k views

How to install the real Firefox on Debian?

Debian 6 ("Squeeze") uses a rebranded version of Firefox called Iceweasel. It, however, lacks plugin support, and most of my favorites don't work. So what is best way to install the "real" Firefox on ...
kravemir's user avatar
  • 2,674
127 votes
7 answers
235k views

How to type special characters in Linux?

In windows there is possibility to type from keyboard special signs by holding alt key and typing a few numbers, that depends on with sign you want to use. Does it work with linux in the same way?
inothemo's user avatar
  • 2,179
120 votes
11 answers
151k views

Undo an "rm -rf ~" command?

I had a folder I didn't want named '~', so from the command line I typed rm -rf ~ and accidentally deleted my home folder (since ~ resolved to /home/username). Is there any way back or do I ...
Chris's user avatar
  • 1,859
116 votes
13 answers
306k views

How to create a video from images using FFmpeg?

Is it possible to use ffmpeg to create a video from a set of sequences, where the number does not start from zero? For example, I have some images [test_100.jpg, test_101.jpg, test_102.jpg, ..., ...
user avatar
97 votes
6 answers
188k views

how to download dropbox files using wget command?

Seems I can only download dropbox files using explorer such as chrome and firefox. If I use wget to download, then I would get a file which is in html format. Why? For example you can open this link ...
hugemeow's user avatar
  • 2,299
82 votes
4 answers
102k views

How to set path for sudo commands

If I issue sudo my-command how does Linux look for that my-command? The my-command is in my PATH. I can invoke it without any problem. However, when I invoke it with sudo, I'll get command not found. ...
xpt's user avatar
  • 8,681
71 votes
13 answers
19k views

How is Linux not prone to viruses, malware and those kinds of things?

How is Linux protected against viruses? This question was a Super User Question of the Week. Read the blog entry for more details or contribute to the blog yourself
ykombinator's user avatar
69 votes
6 answers
279k views

Boot from USB using GRUB

My friend's laptop was in a car accident (he's fine!). However the laptop is very old its an Acer Aspire 1520 the CD-rom drive is broken and there is no floppy drive. I made him a USB boot before I ...
user685590's user avatar
63 votes
12 answers
58k views

How to convert a 1 page PDF to a 2 page per sheet PDF?

I would like to print a PDF so that on the front of the first page are the first two pages, on the back the 3rd and 4th and so on. ----------------- ----------------- | | | ...
mokasin's user avatar
  • 741
60 votes
6 answers
118k views

command not found when using sudo

There are a few question on the site that seem related to my problem but I could not find a solution in any of them. My operating system is Ubuntu 12.04. I have mvn installed in /tools/noarch/apache-...
Ivaylo Strandjev's user avatar
58 votes
5 answers
106k views

How do you check how much power a USB port can deliver?

Some laptops have a special USB port that can deliver more power than the other ones. However it is not always easy to identify which one is the good one, nor how much power it can deliver. So is ...
Peltier's user avatar
  • 6,304

1 2
3
4 5
81