Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [csh]

The tag has no usage guidance.

6
votes
2answers
7k views

find files within a specific directory structure but a variable parent directory structure

I want to use the find command in linux to find a specific file nested within a specific directory structure, say dir1/dir2/reqdfile. But this directory structure can itself be nested within any ...
10
votes
2answers
17k views

How do I add a location to my path in Unix?

I am using a default installation of FreeBSD, with the C shell (csh). Suppose I have a command I can run by executing this: /sbin/abc, but cannot run by executing abc. How can I set certain path or ...
2
votes
1answer
2k views

How to set PATH to run programs outside of default path?

I'm working on a project on my school's linux servers. I have a program deep in a directory, we'll say it's /afs/csic.umd.edu/class/cmsc311/0101/cs311xxx/class/cmsc311/0101/cs311xxx/datalab-handout/...
2
votes
2answers
2k views

How to open xterm shells with background colors based on topographic positioning?

I currently use an alias in csh/tcsh to open shells with specific window colors. Example: xterm -geometry 105x25 -font 8x13 -bc -bg #333 -fg #999 \!* & What I'd like to do is have one command ...
1
vote
3answers
3k views

run tcsh but bash started instead

I tried to start a tcsh on my Fedora 7 (default shell is bash) [ss@ssvm ~]$ tcsh [ss@ssvm ~]$ echo $SHELL /bin/bash As you see, another bash shell started. I looked at the tcsh file: [ss@ssvm ~]$ ...
0
votes
1answer
147 views

how to set up new keybinding for finding last command executed using the first few characters of the command in csh

I want to be able to use Ctrl+R to have reverse-i search. Also if I press Shift+Up Arrow after typing the first few characters of a recently executed command then the shell should complete the command ...
1
vote
2answers
5k views

How to start tab suggestions in csh?

In a different distro of linux I had bash tab suggestions enabled. Now I am using Konsole with csh on my pc. how do we enable tab completion in csh? By tab suggestions I mean that if I type /home/...
2
votes
5answers
17k views

linux text editor for windows

can somebody recommend a good Linux text editor for Windows (if it exists), I wrote scripts for C-Shell using txt editor of windows but I have problem, it doesn't run because windows is not UNIX, what ...
0
votes
1answer
586 views

tcsh `cd` always issues a printout of `$PWD`. How do I disable this?

Someone in IT thought it would be a good idea to modify the default behavior of the command cd in our tcsh environment. As of Monday the "upgraded" version of cd always prints out $PWD after it ...
1
vote
1answer
2k views

getting error while doing cat command “Ambiguous output redirect.”

while executing cat test.txt | java myfile > test1.txt 2> test2.txt I am getting error "Ambiguous output redirect." my java file contains System.out and System.err . I am in Unix csh ...
6
votes
6answers
20k views

How do I set $ variables in unix?

For example there is a long path that I cd to very often. How do I store the path in a variable so that I can use it everytime? For example: I wan to be able to do this cd $path instead of cd /a/b/...
11
votes
6answers
22k views

Is there a way to escape single-quotes in the shell?

E. g. I want to say perl -e 'print '"'"'Hello, world!'"'"', "\n";' Is there a less awkward way to do it, e. g. escaping single-quotes? Yes, I know that I can write perl -e 'print q[Hello, world!], ...