A shell is software that lets users interact with the operating system, usually by typing at a command-line.

learn more… | top users | synonyms

1
vote
1answer
562 views

How do I run gvim within the same shell window?

I'm running gvim on my mac from /usr/local/bin. If I invoke it from a terminal window it opens it up in a new window. I'd like to get it to just run in the same window I'm already using. How do I ...
207
votes
6answers
133k views

How to chmod 755 all directories but no file (recursively)?

How to chmod 755 all directories but no file (recursively) ? Inversely, how to chmod only files (recursively) but no directory ?
4
votes
2answers
659 views

How do I get bash to respect my physical directory structure? (And likewise for Emacs?)

If in bash, I do "set -P" then bash follows the "physical directory structure" when doing "pwd" and "cd .." etc, rather than the "logical one" that might be defined via symlinks. Unfortunately, bash ...
8
votes
4answers
1k views

How long is long for the Unix 'file' command?

When you pass a text file to the Unix file command, it might tell you something like: input.txt: UTF-8 Unicode English text, with very long lines Can somebody tell me the minimum number of ...
0
votes
2answers
904 views

linux: monitoring tty1 in graphical display

I'm wondering if this is possible: I have stuff happening in TTY1 (i.e. the big console I get by hitting ctrl-alt-F1), and if at all possible I'd like to "watch" it in some way from my graphical ...
4
votes
4answers
2k views

Does “chmod 777 .* -R” chmod parent directories (..)?

Does "chmod 777 .* -R" chmod parent directories (..) recursively?
47
votes
2answers
8k views

Case insensitive tab completion in Bash

Is there any way to make Bash tab complete case insensitively? $ bash --version GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0) Copyright (C) 2007 Free Software Foundation, Inc. I am ...
0
votes
2answers
240 views

Shell not finding binary when attempting to execute it (it's _definitely_ there)

I have a specific set of binaries installed at: ~/.GutenMark/binary/<binaries...> These were previously working correctly, but for seemingly no reason when I attempt to execute them the shell ...
2
votes
2answers
266 views

tips about easy alternative/management of PATH in windows

I come from Linux where I'm used to the fact that most applications install to /usr/bin and my tools I put in ~/bin. This means I rarely need to modify the PATH variable. Since I work as a ...
1
vote
2answers
347 views

Zsh: How can I disable the “searching…”-feature?

When I misspell a command or directory and press enter, zsh first says command not found, but then displays the annoying "searching..." text, which can take a few seconds to show me, that nothing has ...
3
votes
1answer
467 views

In tcsh, how can I silence the output of an already running background process?

If I've launched a job into the background how can I redirect its output to /dev/null or in some way silence its output? I didn't start the job like: CMD >& /dev/null & I started it ...
24
votes
14answers
27k views

Linux command to repeat a string n times

Is there any built-in linux command that allows to output a string that is n times an input string??
4
votes
5answers
4k views

Is it possible to open a remote terminal session on a Windows XP machine?

Remote desktop is... useable, but I'd like to get a proper remote terminal window open on the Windows XP machine, like I'm able to with Linux. A quick Google points at this, but it looks like it's ...
1
vote
1answer
2k views

Edit with NotePad++ right-click explorer shortcut not showing

When I first installed NotePad++ it created a short cut (shell extension) to allow your to right click on a file and choose "Edit with NotePad++". It actually was there and I installed the "e" trial ...
14
votes
4answers
3k views

Equivalent/Alternatives for Alt+Dot in Mac

One thing i miss from the Linux shell is the Alt+Dot shortcut. What it does is insert the last argument of the previous command. It appears to be a trivial technique, but it's really useful. i.e. if ...
5
votes
3answers
343 views

The CD command with “-” argument will change to previous directory. Is there a way to know which directory it is?

The command cd - will change the pwd to the last directory. Is there a way to know which directory it is, so that I'll know where I am CD'ing to?
1
vote
2answers
11k views

How to return to last directory with cmd.exe? [duplicate]

Possible Duplicate: Can windows command line support Linux “cd -”? Under Linux, I can use cd - to return to the last directory. How can I do that on Windows?
2
votes
2answers
1k views

Emacs shell mode problem

While emacs shell mode when I run ls I get following [0m[01;32mmanage.py[0m [01;34mtemplates[0m these must be manage.py and templates. Why its like that and how can fix it?
3
votes
5answers
10k views

Windows 7's start menu's search “see more results” is broken

After searching in my start menu and clicking to "see more results", I got an error dialog: It "seems" that it should be search-ms:query=document an not search:query=document but where can I fix ...
14
votes
2answers
20k views

how to bring a background job to foreground

in Linux/shell, how can I bring background jobs to foreground and vice versa?
1
vote
4answers
1k views

How can I restrict find to only search specific sub-directories?

I am using find in a Bash script. How can I modify that code to include a specific directory under 'bin' , ie './bin/php/' (while still ignoring all other sub-directories of 'bin')? Current code: ...
1
vote
1answer
418 views

Why don't the up/down arrows work while executing a :shell command from within Gvim?

This problem only happens in Gvim. It does not happen in the console version of vim. I'm running Gvim 7.2.245 on a Ubuntu 9.10 machine. After opening Gvim, I can type :sh and get to the shell ...
2
votes
7answers
3k views

Building Unix/Linux programming environment for a Windows developer

I have been a Windows C++/.NET developer for a few years, and would like to start C++ programming in Unix environment. What I think I have to do is to create Virtual Machine, install the version of ...
14
votes
5answers
365 views
2
votes
1answer
949 views

Scripts that extend wget --page-requisites?

I have posted a very similar question today but I would like to ask again with a wget/linux focus. I hope that's all right. I need to create offline copies of web pages programmatically on a LAMP ...
63
votes
7answers
43k views

How do I make rm not give an error if a file doesn't exist?

I'm writing a makefile that will clean up some useless files at the end of the compilation. If a target has already been made, it will of course skip that target and the useless file may not be ...
3
votes
1answer
2k views

Vim press ENTER to continue

When using vim to run a shell command, eg. with :!ls or :sh to get into a shell, I always have the prompt Press ENTER or type command to continue This is fine for "internal" vim commands ...
0
votes
1answer
1k views

SSH (secure shell) access with apache on Windows

Is it possible (and how if it's possible) to setup secure shell access to Apache? Apache is installed on my local computer (Windows)? I have SSH access in my hosting account, but I need it on my ...
9
votes
1answer
5k views

tee for Windows?

Does Windows provide the basic tee facility for copying standard input to an arbitrary set of files and then back out to standard output? I generally download a generic tee program, but curious if ...
3
votes
2answers
2k views

Ubuntu: Accidentally changed root user to nonexistent shell

I tried to change my user's shell, but used "sudo chsh", and changed the root shell to "bash" instead of "/bin/bash". Now when I try to change it I get "chsh: PAM authentication failed" and it seems ...
0
votes
2answers
2k views

How to change default fonts for a shell?

How to change default fonts for a shell ? Is this same as changing fonts for xTerm. I am using JeOS, would like change the fonts, as all of the work i do is in terminal. Second i would prefer if i can ...
4
votes
1answer
453 views

file permissions in Unix

I am working on Solaris Unix. I have a file with permissions: -rw-r----x+ What does the + at the end mean?
41
votes
4answers
48k views

What does “2>&1” do in command line?

I know that the > sign is used for output redirection in the command line, but I'm having trouble finding something that explains the use of 2>&1 in the command line. For example: curl ...
0
votes
2answers
1k views

How to ssh from powershell?

How to ssh from powershell? Basically from my host-os windows7 to my guest-os linux.
15
votes
10answers
16k views

Mac OS X - Could not start Terminal.app - shell has illegal value

I can not run the Terminal.app after rolling back my system from time machine. Mac OS X Version 10.6.2 It displays the following error. "Your are not authorized to run this application" "The ...
2
votes
2answers
746 views

Getting triple-tap for Gyration Media Center remote working in Windows shell

I have this Gyration remote which, out of the box, does not support triple-tap for text entry outside of Media Center; only numbers can be entered in the Windows shell. Gyration have a patch that ...
6
votes
2answers
339 views

How to correct the unrecognizable code in my debian?

After running programs that output unrecognizable code, the whole shell would be full of unrecognizable code. How can I correct this?
2
votes
1answer
392 views

How do I reconnect to my lost shell? (after a Terminal crash)

I had some tabs in the Terminal and was doing some work when it crashed but my processes were still running (could see them in Activity Monitor/htop). When I started the Terminal again it put me to ...
98
votes
6answers
92k views

chown is not changing symbolic link

I'm trying to change the user/group of a symbolic link with the command: $ chown -h myuser:mygroup mysymbolic/ But it's not changing. I'm logged in as root. The current user/group is set to ...
49
votes
9answers
65k views

sudo with password in one command line?

On busy days, I'd like to run $ ./configure && make && sudo make install && halt on the night and go to bed, hoping the application would automatically be installed. But ...
2
votes
1answer
599 views

How do I add “Open Folder in cmd.exe” to the shell in Windows 7?

how do I add an option to open a folder in cmd.exe to the context menu of a folder? In Windows XP this can be done by going to the folder options, clicking file types, selecting folder, pressing ...
1
vote
1answer
306 views

Automatically open README/readme/etc with less?

I come up with a solution to this problem,write a piece of script call readme who internal call the less with the current directory readme-alike txt file. Is there any software to do so?I do not want ...
1
vote
5answers
605 views

Traverse path up and check/set permissions in shell script - how?

In a given shell script I need to take a known path and check it upwards (to the file system root) for correct permissions. How would I split the path and walk upwards in a shell script (can be bash ...
2
votes
1answer
336 views

Why did shell redirection fail?

The command causing the failure, gpc xxx.pas > error.txt Because I want to upload the error message to the stackflow.com,but it turns out there is nothing in the error.txt,moreover the gpc still ...
2
votes
2answers
351 views

How to extract text from the current shell?

When I want to ask question on Linux platform, I would always need to provide the screenshot of current shell.But taking snapshot,uploading, linking costs much, is there any command to extract text ...
0
votes
2answers
260 views

When re-directing to a file in linux tcsh, how can I change the write buffer size to be larger?

In linux tcsh, if I am creating a log file like: CMD > cmd.log How can I make the write buffer, which caches the data before sending it to disk, be larger than the default? How can I buffer more ...
-1
votes
3answers
256 views

what does tail + number does? What about head

I just called this command ls -l | tail +3. Firstly, ls -s, produces 3 lines, adding piping strips first line and then prints each file names on a separate line. How does it do that? It doesn't make ...
6
votes
4answers
6k views

Unix command to list all directories larger than 10mb

Is this possible, and what would the command be?
41
votes
9answers
3k views

Why is Bash everywhere (in most if not all Linux distributions)?

Bash is used by default in every Linux distribution I have tried, over alternatives like Z shell (zsh). Is there a technical or historical reason for this?
1
vote
5answers
2k views

Recursively delete files on Windows

I need to remove all files and directories starts with ._ recursively: find . -name \._* | xargs rm How can this be done on Windows using a DOS/shell command (without Cygwin)?