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

learn more… | top users | synonyms

5
votes
3answers
344 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
13k 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
11k 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 ...
15
votes
2answers
22k 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
427 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
366 views
2
votes
1answer
963 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 ...
69
votes
8answers
50k 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
6k 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
3k 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
3k 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
459 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?
42
votes
4answers
51k 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
17k 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
754 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 ...
7
votes
2answers
353 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
404 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 ...
107
votes
6answers
103k 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 ...
53
votes
9answers
72k 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
607 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
307 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
616 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
356 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
358 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
264 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
272 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)?
3
votes
1answer
3k views

How can I clear the scrollback buffer in konsole from bash?

I'm a heavy bash user and konsole is my preferred environment. I know I can use the keyboard command ctrl+shift+x to clear the scrollback buffer, but there's certain points in my scripts where I would ...
4
votes
5answers
1k views

How to tar.gz everything under xx MB?

I'm currently using this: tar -pczf backup.tar.gz * to tar.gz everything. There are some other backups though (in other folders), these are typically the only files > 50mb. How can i exclude ...
1
vote
2answers
3k views

64 bit alternative shell

Im looking for a 64 bit, minimalistic replacement shell for Windows XP/Vista/7. Any ideas?
21
votes
7answers
89k views

How do I run the Windows 7 Explorer shell with Administrator Privileges by default?

The Windows 7 shell (Explorer) can be made to run with Administrator privileges by this manual process: Kill Explorer shell by holding down Shift+Ctrl, right-clicking the Shut down button in the ...
0
votes
4answers
201 views

Any other bourne shell port on Linux?

I'm looking for Linux ports of historic Bourne shell versions (other than the Heirloom shell, which implements the SVR4/SVID3 level of the shell). For curiosity and research, I want to dig into the ...
4
votes
11answers
43k views

How to shut down a computer having a particular IP address?

If we have a collection of Windows and Linux computers on a LAN, is it possible to shutdown a computer having a specific IP address, using the Linux shell? Assume that I do not have ssh or telnet ...
37
votes
4answers
11k views

What is the origin of the UNIX $ (dollar) prompt?

The UNIX prompt uses a $ symbol to indicate that your input is expected. I was wondering why this symbol was chosen -- if there is a reason. Dollar just seems a little unexpected. A > would have been ...
18
votes
3answers
9k views

How to remove shell integration of Notepad++?

I need to remove the annoying shell integration of Notepad++. How do I do that, please?
1
vote
1answer
199 views

history file grows indefinitely

I believe I get the same problem as this guy. I'm on AIX, with tcsh 6.12.00 After (probably) a bad logout, the history file exponentially grown, until the quota stopped it (and when the quota was ...
2
votes
5answers
5k views

How to set permissions for folder in Unix/Linux Ubuntu

This is not necessarily direct computer science question but its closely related. Is there any way to do this. I am using Z Shell zsh. I want to set up so whenever i am in folder ~/blah ...
12
votes
4answers
12k views

How to diff directories for different files, but not line-by-line

I want to see, recursively, files that are different in two directories. Diff can do this, but it shows me the line-by-line differences, which I don't want. Is there a tool that does this, or a way to ...
9
votes
3answers
3k views

Why does less tail mode stop working?

Using the less command on linux in tail mode (F command or less -f) consistently stops working on certain machines and/or certain files. New changes simply stop showing up. I know I've fixed this ...
2
votes
2answers
5k views

How to abort robocopy on first error

When using robocopy windows utility, what flags do I set so that robocopy aborts on the very first error it sees, similar to xcopy /dry command? I need to mirror two dirs, and on occasion some files ...
17
votes
3answers
6k views

Use GNU screen as login “shell”

What's the best way to have screen automatically run when you open a new shell, whether by login, xterm, or anything else? I see the most common recommendation is to put exec screen in your regular ...
5
votes
3answers
1k views

Launching a 32-bit explorer on Windows 7 64 bit

I'm trying to get shell extenions (e.g. unlocker) to work on Windows 7 64 bit. I found this post about launching it on Vista 64bit, which doesn't seem to work on Windows 7. There's also this old post, ...