A shell is software that lets users interact with the operating system, usually by typing at a command-line.
3
votes
4answers
240 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
780 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 ...
10
votes
2answers
3k 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
132 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
121 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
236 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
520 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
1k 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?
5
votes
8answers
1k 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
482 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
116 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
1k 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
787 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
376 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 ...
67
votes
6answers
36k 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
537 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 ...
6
votes
4answers
602 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
682 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 ...
1
vote
3answers
1k views
Does “chmod 777 .* -R” chmod parent directories (..)?
Does "chmod 777 .* -R" chmod parent directories (..) recursively?
20
votes
2answers
3k 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
205 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
213 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 ...
0
votes
2answers
270 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
397 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 ...
15
votes
13answers
12k 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??
3
votes
5answers
2k 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 ...
4
votes
4answers
1k 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 ...
4
votes
3answers
279 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?
0
votes
2answers
3k 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?
2
votes
4answers
7k 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 ...
6
votes
2answers
7k 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
285 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
361 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 ...
1
vote
7answers
2k 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
340 views
1
vote
1answer
730 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 ...
24
votes
7answers
11k 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
1k 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
754 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 ...
8
votes
1answer
4k 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 ...
2
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
1k 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
382 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?
21
votes
2answers
21k 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
1answer
1k views
How to ssh from powershell?
How to ssh from powershell? Basically from my host-os windows7 to my guest-os linux.
14
votes
9answers
13k 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
680 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 ...
