FG

All Issues

24,993 verified issues

Fresh13 days ago

Does bash have a hook that is run before executing a command?

In bash, can I arrange for a function to be executed just before running a command? There is , which is executed before showing a prompt, i.e., just after running a command. Bash's is analogous to zsh's function; so what I'm looking for is a bash equivalent to zsh's . Example applications: set your terminal title to the command being executed; automatically add before every command.

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

Is there a way to see any tar progress per file?

I have a couple of big files that I would like to compress. I can do this with for example The problem is that I can't see any progress, so I don't have a clue how long it will take or anything like that. Using I can at least see when each file is completed, but when the files are few and large this isn't the most helpful. Is there a way I can get tar to show more detailed progress? Like a percentage done or a progress bar or estimated time left or something. Either for each single file or all of them or both.

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

Is there a shortcut command in Windows command prompt to get to the current user's home directory like there is in Linux?

I am used to using to get right into my home directory. In Windows command prompt I have to do to get there. Is there a shortcut like the Linux one? It would be nice if I could get there by doing Is something like this possible in Windows Vista?

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

Why does Windows use backslashes for paths and Unix forward slashes?

It annoys me having used Unix in college and now working on the Windows side. What's the history behind this decision? Anyone know why it worked out this way?

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

Force a program to run *without* administrator privileges or UAC?

Is there any way that I can force a program that normally requires administrator privileges (via UAC) to run without them? (ie: no UAC prompt and no system-wide access.) Added: Without modifying the executable itself. In spite of James's answer, I have found a few ways that it can almost be done: By modifying the executable I can remove the entry from the manifest (or the manifest entirely, so I can use an external one), allowing the program to start without UAC. Unfortunately this modifies the executable, so it exits shortly after due to an internal checksum test. By using Process Explorer I can launch it as a Limited User. However this seems to limit it significantly more than I would like (it runs like Protected Mode IE and so can access significantly less than what my standard un-elevated user can).

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

Is it possible to paste CSV formatted data into Excel 2007?

I want to copy and paste CSV formatted text into Excel 2007. Is there a way of doing this without saving it to a temporary file first? I'm sure in previous versions of Excel there was a way to trigger the CSV import wizard by hand in this situation, but I don't know how do this in Excel 2007. For reference, in OpenOffice this Just Works - pasting in 2+ lines of CSV text will trigger the CSV import wizard.

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

How to get vim to open multiple files into tabs at once

Is it possible to get vim to open multiple files into tabs, similar to the way the command will open multiple files into buffers? Doing something like results in the error "E77: Too many file names", even though the number of files is less than the value set in the property. (I believe the option will open in tabs, but I'm hoping to find a way to do it when vim is already open.)

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

List the current folder folder's sizes with the terminal?

I want a list of the folders from the current directory or one that I specify with their size. I have tried with du but I only get the size of the directories I specify (du . ./f1), and ls doesn't show the size of the folders. How do I do this without any scripting ?

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

What does the 'rc' in `.bashrc`, etc. mean?

Well, this is embarrassing. I feel like I just realised I don't know a loyal colleague's name after working with them for 10 years. "Hey, er... *cough!*, thanks for that great job you did on setting my aliases this morning..." What do the letters signify in , , etc.? If you know, please cite sources. Even if you don't know, I'd also welcome unfounded assumptions, suggestions or alternatives if they're marked as such.

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

What is the difference between executing a Bash script vs sourcing it?

What is the difference between executing a Bash script like A and sourcing a Bash script like B?

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

When ssh'ing, how can I set an environment variable on the server that changes from session to session?

When I into a server, how can I pass an environment variable from the client to the server? This environment variable changes between different invocations of ssh so I don't want to overwrite every time I do an ssh call. How can I do this?

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

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 entering the passphrase and having the shell load Now, specifically I'm looking at ssh details only here. Obviously network latency, speed of the hardware and OSes involved, complex login scripts, etc can cause delays. For context I ssh to a vast multitude of linux distributions and some Solaris hosts using mostly Ubuntu, CentOS, and MacOS X as my client systems. Almost all of the time, the ssh server configuration is unchanged from the OS's default settings. What ssh server configurations should I be interested in? Are there OS/kernel parameters that can be tuned? Login shell tricks? Etc?

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

Search bookmarks in Google Chrome address bar

I simply want to search through the bookmarks in Google Chrome as I type in the address bar. I don't want to have to type the full URL just to hit a site already stored in my bookmarks. Google Chrome doesn't seem to catch the bookmark entries and I usually have to type a full URL if I know it. Is there any way to turn it on to search through the bookmarks or an extension that can do this?

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

How to password protect gzip files on the command line?

I want to create some tar.gz (and possibly tar.bz2) files, using the tar command on Ubuntu 10.04. I want to password protect the file. What is the command to do this (I have Googled, but found nothing that shows how to create and extract compressed files using a password). Anyone knows how to do this?

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

How to install rmagick on Ubuntu 10.04?

Here's what I've done so far: This did not throw any errors, so I think that ImageMagick is installed fine. Then I tried installing the gem: This resulted in the following error: What do I need to do to install rmagick on Ubuntu 10.04?

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

How to get the summarized sizes of directories and their subdirectories?

Let's say I want to get the size of each directory of a Linux file system. When I use I don't really get the summarized size of the folders. If I use I get the size of each mounted file system but that also doesn't help me. And with I get the size of each subdirectory and the summary of the whole file system. But I want to have only the summarized size of each directory within the ROOT folder of the file system. Is there any command to achieve that?

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

Automatically answer 'Yes' when using apt-get install

Is there a way to make automatically choose "yes" upon the confirmation dialog?

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

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 just there. This causes problems because our web designers push changes into the VCS that should not be live yet but should be on the web-testing environment. When one of the developers now pulls into live he gets all (possibly unfinished) changes. I thought of switching live to an extra branch and just merge what changed but due to my lack of git knowledge I have no idea how. My idea is: Create a new branch in live ( ). Every time something has to go live Pull changes in master (like: ) The problem is that switching to master or pulling everything directly into the live system would cause problems so I'd prefer to avoid this. Is there any way to do this or is there any better way to manage the live system (except for training the webbies to…

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

How do I expand all columns in Excel spreadsheet?

I have a spreadsheet with many columns. The columns are all a small standard width. Double-clicking the partition line between columns will expand the column width to encompass the longest string in that column. Is there a shortcut to perform this operation on every column in the spreadsheet?

Confidence1%
1%
Candidate Fix
1 fix
Fresh13 days ago

mount dev, proc, sys in a chroot environment?

I'm trying to create a Linux image with custom picked packages.What I'm trying to do is to hand craft the packages I'm going to use on an XO laptop, because compiling packages takes really long time on the real XO hardware, if I can build all the packages I need and just flash the image to the XO, I can save time and space. When I tried to install some packages, it failed to configure due to missing the proc, sys, dev directories. So, I learned from other places that I need to "mount" the host proc, ... directories to my chroot environment. I saw two syntax and am not sure which one to use. In host machine: and another syntax (in chroot environment): Which one should I use, and what are the difference?

Confidence1%
1%
Candidate Fix
1 fix
← PrevPage 119 of 1250Next →