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
925 views

Why are some files in ls -l on Mac OSX (Snow Leopard) tagged with “@”? [duplicate]

Possible Duplicate: What does the @ in ls -al mean? When doing an ls -l some files are tagged with "@" like this: -rw-r--r--@ 1 master staff 2074042 Feb 3 19:26 ...
1
vote
3answers
142 views

Search and replace /'s in VI

I was wondering how I would search and replace all /'s with -'s in vi. %s///-/g doesn't work obviously.
3
votes
4answers
2k views

Why does \rm work but rm doesn't?

Usually whenever I remove directories, "rm -rf " works. But sometimes I get this response: "rm: examine files in directory / (yes/no)?" Then I try "\rm -rf ", and that works. Can anyone explain why? ...
3
votes
4answers
6k views

Under Ubuntu, how can I place a shell alias command that will be global to everyone?

Under Ubuntu 9.10, where can I place an alias command that will be valid to all users, root or otherwise, and that will work with a shell under GNOME as well as an ssh session and plain console login ...
14
votes
5answers
8k views

Linux Shell: Copy output into clipboard w/o using the Mouse?

Is it possible to copy the output into the clipboard without using the mouse? For example, I would like to do something like this: $ pwd >> clipboard
7
votes
2answers
4k views

Is it possible to set wget to show the transfer times in milliseconds?

Generally, wget shows transfer times in seconds. Is there a way I can to make it show the time in milliseconds?
10
votes
4answers
6k views

Better way to do “echo $x | sed …” and “echo $x | grep …”

I often find this in scripts (and, I have to admit, write it myself): a=`echo $x | sed "s/foo/bar/"` or if echo $x | grep foo then ... fi Consider "foo" to include some regex stuff. I feel ...
2
votes
3answers
3k views

How do I change my default shell to use ZSH in Ubuntu? [duplicate]

Possible Duplicate: How do I make Bash my default shell on Ubuntu? I want to change my default shell in Ubuntu to ZSH. What's the command to do this?
3
votes
4answers
247 views

Is 'more' dead on OS X?

Just when I was getting curious about less vs. more I am running Snow Leopard. When I type more it says Missing filename ("less --help" for help) So I type whereis more and it says /usr/bin/more. ...
4
votes
1answer
987 views

emacs as a pager?

I am looking for a way to use emacs as my pager command in the shell (for example with man or to scroll the output of an asynchronous command with a large amount of output). I use emacsclient as my ...
14
votes
2answers
5k views

Putty SSH: CTRL+Cursor keys don't work skip to previous/next word

When I am connected to my local Ubuntu dev server with putty (from my Windows 7 box) via SSH, the following key combinations don't work to move the cursor forward and backward on word boundaries: ...
0
votes
2answers
165 views

Existence of USER environment variable in the shell

I heard (although I can't find any sources for proof) that the USER environment variable may not be set in a old Unix shells (maybe even some obscure shells as well). What is the probability that it ...
3
votes
1answer
374 views

Change priorities of ALL processes

I know that you can modify the nice value of a particular process as follows: renice 19 -p 4567 However, now I would be interested to set the renice value of ALL active processes. I am coming from ...
0
votes
2answers
318 views

how make a alias mixing with clearcase command and shell command

I make a alias like : alias a 'ct setview myview ; cd /vobs/project/foo' but this alias just partly works : it can set view , but it does not take me to /vobs/project/foo . so could you tell me ...
0
votes
2answers
600 views

Linux rename using parameters and spaces?

Is it possible, in Linux, to rename a file from something without spaces to something containing spaces? I know I can create directories and files with spaces by doing: mkdir "new dir" and: touch ...
2
votes
4answers
2k views

How to moves files two directories up using ssh?

I am able to move files one directory up by using the following command: mv * .. but is there a way to move files two directories up?
1
vote
4answers
1k views

Shell environment for su

I have some aliases and modifications to ls that I'd like available at all times. Is it possible to set environment variables for use when I am logged in as root after I sudo up with sudo su?
7
votes
8answers
3k views

Ending a process in unix instead of interrupting it

At the unix command line if i press Ctrl-C,that does not end a process but rather interrupts it and i return to the shell prompt. So,i have the following two questions: 1.Is there a way i can see the ...
2
votes
6answers
575 views

md5 hash is different on a file split, cat back again

Here's an excerpt of the commands I ran as I split and then cat a file: sh-3.2# split -b 600m bt4-final.iso sh-3.2# ls -hal total 6132096 drwxr-xr-x 6 root staff 204B Jan 12 19:59 . ...
0
votes
2answers
132 views

forwarding /var/usr/emails/dave to other emails

I'm new to openSuse 11.1, I have several crontab jobs running, one of which creates a dynamic list of 'at' jobs each day. I've noticed every time one of the 'at' jobs finish, an email is sent to ...
3
votes
4answers
2k views

GNU find with -exec rm removes matches, then complains they don't exist

I have a /domains directory in which I have entries such as theawesomesite.com 0.2.v.theawesomesite.com 0.3.v.theawesomesite.com And after testing 0.3, I'll set the main domain to alias the new ...
3
votes
5answers
920 views

Shell: Is it possible reference previous parameter?

Is it possible to run consecutive commands, with those that follow referencing the parameter(s) passed to the very first? For example, download, untar, and cd: wget superuser.tar.gz tar -xzf ...
1
vote
1answer
540 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 ...
195
votes
6answers
126k 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
652 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
894 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?
44
votes
2answers
7k 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
239 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
264 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
342 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
26k 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 ...
13
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
341 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
4answers
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
19k 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
415 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
938 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 ...
61
votes
7answers
41k 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 ...