Most Popular
1500 questions
274
votes
5 answers
Linux Bash Script, Single Command But Multiple Lines?
I have the following script I wrote by searching Google, and it backs up my Linux system to an archive:
#!/bin/bash
# init
DATE=$(date +20%y%m%d)
tar -cvpzf /share/Recovery/Snapshots/$HOSTNAME_$DATE.tar.gz --exclude=/proc --exclude=/lost+found…
Jay LaCroix
- 2,761
273
votes
6 answers
Choosing between .bashrc, .profile, .bash_profile, etc
This is embarrassing, but after many years of using POSIX systems full time, I still have a hard time figuring out if a shell customization should go in .bashrc, .profile, or somewhere else. Not to mention some of the OS-specific config files like…
Avdi
- 2,920
273
votes
11 answers
Is it possible to ping an address:port?
I am not into networking, and I have the following question related to the Linux ping command.
Can I only ping an address? For example:
miner@raspberrypi ~ $ ping onofri.org
PING onofri.org (67.222.36.105) 56(84) bytes of data.
64 bytes from…
AndreaNobili
- 7,381
272
votes
5 answers
Why should I use Vagrant instead of just VirtualBox?
I've been using VirtualBox for many years to create a development environment.
A lot of my colleagues are talking about Vagrant and many people seem very excited about it but I just can't seem to grasp the benefits of it.. seems to me like it's a…
John Hunt
- 3,148
- 4
- 18
- 18
272
votes
5 answers
How can I install 7zip so I can run it from Terminal on OS X
I would like to be able to run 7zip from the command line on Mac. Does anyone have instructions on how to set this up?
Paul Sheldrake
- 5,224
272
votes
2 answers
Vertically stack multiple images using ImageMagick
I would like to combine multiple images into one image using ImageMagick. To explain a little better, I want the result to look similar to this:
That is, I have a number of screenshots, and I want to turn them into one image with the original…
Petter
- 2,831
269
votes
12 answers
How do I start Chrome using a specified "user profile"?
I use the new built-in "Users" feature of Chrome to switch between Home/Work accounts easily. However, Chrome remembers the "last" user profile you had selected when launching new windows. This is a problem if I close down my "Home" profile last,…
Danny Tuppeny
- 3,299
269
votes
12 answers
How can I execute a Windows command line in background?
How can I execute a windows command line in the background, without it interacting with the active user?
Mohammad AL-Rawabdeh
- 2,961
268
votes
9 answers
How do I change the language of all Powerpoint slides at once?
I want to change the proofing language of all my slides in a Powerpoint. I've tried setting the language via the Language Preferences menu, however this only changes it for new powerpoints.
liamzebedee
- 3,317
- 2
- 20
- 17
268
votes
5 answers
Pull another Git branch without switching
We recently switched from SVN to Git and at the same time put our live systems into version control (instead of local checkout and file copy to live).
On the project I'm assigned to we all access the same repository and to get changes into live we…
user27709
267
votes
15 answers
Customize Google Chrome keyboard shortcuts?
I would like to customize keyboard shortcuts in Google Chrome.
For example, I would like to map the key combination Ctrl+Shift+W to the command "Close Other Tabs" instead of right-clicking on a tab (default command).
Is there any setting in…
wip
- 7,444
267
votes
13 answers
Is there a fix for the "Too many open files in system" error on OS X 10.7.1?
I need to get rid of the pesky "Too many open files in system" limit on OS X 10.7.1.
Is there a way?
John Wilund
- 2,687
267
votes
16 answers
How do I extract files from an MSI package?
We have some old patches that we want to get the files from but don't wish to spend the time installing them to a machine.
Can anyone advise a way to extract files from an MSI installation package?
Martin
- 4,424
267
votes
15 answers
How can I reduce the consumption of the `vmmem` process?
I installed docker on windows home which uses WSL2 as a backend. However, since doing this a process called vmmem seems to be consistently consuming a lot of computational resources. I ran docker stop $(docker ps -aq) to kill all running containers…
CiaranWelsh
- 3,466
266
votes
8 answers
Read the contents of a zipped file without extraction?
How can I read the contents of a particular file in an archive without extracting the .zip it is contained within? I'm using the Linux command line.
An earlier question asks about viewing the directory of the archive. But for me it is not enough to…
Shrikanth
- 2,661
- 2
- 15
- 3