Most Popular

1500 questions
101
votes
13 answers

Remote desktop use two out of four monitors

I've recently upgraded my home workstation and now have four monitors on it. I work remotely most of the time and need some way to get remote desktop onto only two of those four monitors. The top two monitors (monitors 4 & 3, going from left to…
William Gant
  • 1,011
101
votes
2 answers

chain Fish commands via `&&` or `||`

In Bash/ZSH and other shells, I am used to using && and ||. Is there any equivalent in Fish?
Albert
  • 6,661
  • 11
  • 39
  • 51
101
votes
12 answers

How to create and format a partition using a Bash script?

Is there any way to create and format a partition using a Bash script? I think it can be done with fdisk but I don't know how to feed commands from the Bash script into the fdisk shell and then exit the fdisk shell. I'd like to create a partition…
GlassGhost
  • 1,269
101
votes
12 answers

Best way to transfer files over a LAN between two Linux computers

I want to transfer files (a music folder) between two Linux computers. After searching for the best way to do this, I've seen that there are lots of ways of doing this. I know this has been asked a lot, everywhere and all the time. The main problem…
jonallard
  • 1,356
101
votes
4 answers

Using Multiple SSH Public Keys

I have a personal account and a company account on Unfuddle. On Unfuddle SSH keys can only be used on a single account, so I need to create a seperate SSH key on my laptop for both accounts. I ran ssh-keygen -t rsa to generate two keys with…
Dave Long
  • 1,145
101
votes
16 answers

zsh starts incredibly slowly

ZSH takes about a second and a half from creating a new terminal window to being ready. I'm pretty sure that the culprit is compinit. I haven't been able to find good documentation on compinit, but it looks like it should be caching all of the…
Eli
  • 1,113
101
votes
6 answers

git "ping": check if remote repository exists

I'd like to know whether a remote repository exists. Here's what I came up with: git ls-remote -h "$REPO_URL" &> /dev/null Is there any better way?
Jo Liss
  • 4,279
101
votes
11 answers

ShellExecute failed (2) error for Notepad++ on Windows 7 64bit

ShellExecute failed (2): Is this command correct? "C:\Program Files (x86)\Notepad++\notepad++.exe [location of file to edit] I seem to have some issue with RIGHT CLICK > Edit with Notepad ++. This is on a fresh install of Microsoft Windows 7…
Jakub
  • 3,171
101
votes
7 answers

How do I update all fields in a Word document?

I want a way of updating all fields in a Word 2013 document. (If it works in other versions, all the better; I originally had this problem with Word 2007, and nothing seems to have changed since then.) This includes cross-references, page numbers,…
101
votes
4 answers

How to check the exit code of the last command in batch file?

Inside a batch file on Windows, I use 7-zip like this: ...\right_path\7z a output_file_name.zip file_to_be_compressed How could I check the exit code of 7z and take the appropriate action ?
101
votes
5 answers

How to install rmagick on Ubuntu 10.04?

Here's what I've done so far: sudo apt-get install imagemagick libmagickcore-dev This did not throw any errors, so I think that ImageMagick is installed fine. Then I tried installing the gem: sudo gem install rmagick This resulted in the following…
Andrew
  • 14,924
101
votes
8 answers

How do I get back unused disk space from Ubuntu on WSL2?

I'm using Ubuntu 20.04 on WSL2 on Windows 10, and I noticed that after removing files on Ubuntu I was not getting the space back that was taken up by the removed files. For example: Before I deleted files on Ubuntu it showed on Windows explorer that…
Timothy
  • 1,113
101
votes
5 answers

How to update Google chrome in Ubuntu?

How to update Google chrome in Ubuntu?
OscarRyz
  • 4,131
101
votes
8 answers

How can I view results of my cron jobs?

I see so many guides on how to run crontab, but what I need right now is to learn how to Find log files about cron jobs Configure what gets logged
Zombies
  • 3,812
101
votes
9 answers

How to do networking between virtual machines in VirtualBox?

I have two virtual machines in VirtualBox. I would like to do networking between them. For the moment I have the default configuration on both, but they seem to have the same IP-address 10.0.2.15. I would also like to be able to use Internet with…
Jonas
  • 27,554