Questions tagged [tcsh]

tcsh (TENEX C shell) is a shell for Unix-like operating systems and an enhanced, but completely compatible version of the Berkeley UNIX C shell (csh).

tcsh (TENEX C shell) is a shell for Unix-like operating systems. It is an enhanced, but completely backwards-compatible, version of the Berkeley UNIX C shell ().

From their website:

It is a command language interpreter usable both as an interactive login shell and a shell script command processor. It includes a command-line editor, programmable word completion, spelling correction, a history mechanism, job control and a C-like syntax.

Website: http://www.tcsh.org/Welcome

Man page: http://linux.die.net/man/1/tcsh

Wikipedia: http://en.wikipedia.org/wiki/Tcsh

Similar

306 questions
144
votes
7 answers

How to kill a runaway cat?

Many times I accidentally run the cat command on files that have contents up to few thousand lines. I try to kill the cat command with Ctrl+ C or Ctrl+Z, but both only take effect after the total output of cat is displayed in the terminal, so I have…
JigarGandhi
  • 4,820
  • 10
  • 27
  • 38
121
votes
7 answers

Convert file contents to lower case

I have temp file with some lower-case and upper-case contents. Input Contents of my temp file: hi Jigar GANDHI jiga I want to convert all upper to lower. Command I tried the following command: sed -e "s/[A-Z]/[a-z]/g" temp but got wrong…
JigarGandhi
  • 4,820
  • 10
  • 27
  • 38
117
votes
16 answers

How to determine the path to a sourced tcsh or bash shell script from within the script

Is there a way for a sourced shell script to find the path to itself? I'm mainly concerned with bash, though I have some coworkers who use tcsh. I'm guessing I may not have much luck here since sourcing causes commands to be executed in the current…
Cascabel
  • 1,611
  • 2
  • 12
  • 15
45
votes
5 answers

Which shell am I running on?

When I run echo $SHELL the output says /bin/tcsh which means that I am running a tcsh shell. But for example when I issue the following command alias emacs 'emacs -nw' I get the following error: bash: alias: emacs: not found bash: alias: emacs…
Vombat
  • 12,654
  • 13
  • 44
  • 58
37
votes
7 answers

Which shell should I use - tcsh vs bash?

I have been using tcsh for a long time now. But whenever I am searching for something, I often find that the methods specified are bash specific. Even the syntax for the shell scripts is different for the two. From what I have experienced searching…
Lazer
  • 34,477
  • 25
  • 70
  • 75
26
votes
3 answers

How does a shell know home(s)?

Each shell has an environment variable $HOME set (ex: /Users/lotolo). If I'm under csh I can unsetenv HOME and still if I do cd I'll be in my home. I've tested this also on bash (unset HOME) and it's the same behavior. So how does the shell know…
LotoLo
  • 596
  • 1
  • 8
  • 18
20
votes
3 answers

Search for a previous command with the same prefix when I press Up at a shell prompt

Coming from a FreeBSD world I wish to make the Linux terminal behave like FreeBSD one, especially the 9.1 version, basically when you type cd in the terminal and push the "up" arrow you can browse all the commands in the history starting with cd…
20
votes
3 answers

How do I temporarily bypass an alias in tcsh?

I am using tcsh. bash and zsh and other suggestions won't help here. I have several aliases that are named the same thing as another command, so if I did unalias it, typing the same thing would now do something different. Most of the time I want the…
piCookie
  • 303
  • 1
  • 2
  • 6
18
votes
3 answers

~/.inputrc file not sourcing correctly

I have this ~/.inputrc file that I created for certain key bindings. # mappings for Ctrl-left-arrow and Ctrl-right-arrow for word…
rrlamichhane
  • 373
  • 1
  • 5
  • 12
14
votes
2 answers

the usage of < /dev/null & in the command line

I tried to run an example java program using the following command line. However, I do not know what is the trailing part < /dev/null & used for? java -cp /home/weka.jar weka.classifiers.trees.J48 –t train_file >& log < /dev/null &
user297850
  • 811
  • 2
  • 9
  • 11
11
votes
3 answers

Preserve tcsh history in multiple terminal windows

How can we preserve or maintain the same history across multiple terminals? The same question, but for bash shell , were discussed in the below link Preserve bash history in multiple terminal windows let me know the corresponding settings for tcsh…
user1228191
  • 831
  • 1
  • 8
  • 11
11
votes
2 answers

How to execute a builtin shell command using find?

I'm constrained to doing this in tcsh on CentOS due to the environment at work. When executing find . -type f -executable -exec source '{}' \; the only result is find: 'source': No such file or directory for each appropriate file. Not sure why this…
roninkelt
  • 111
  • 1
  • 3
10
votes
3 answers

bash readline: Key binding that executes an external command

(Background: I'm a long-time tcsh user, gradually transitioning to bash, and trying to find equivalents for some useful tcsh-specific features.) In tcsh, I can define a key binding that executes an external command. For example, given: bindkey -c…
Keith Thompson
  • 21,782
  • 6
  • 48
  • 55
10
votes
1 answer

How do I prevent ssh remote login from breaking dbus?

I'm running openSUSE 11.3 on my workstation at work under KDE, I don't have root access to it. The default shell has been set to tcsh. When I am logged in at my workstation and log in remotely from my MacBook running OS X 10.6 using ssh, like…
user1079118
  • 109
  • 1
  • 4
10
votes
3 answers

How do I create a directory for every file in a parent directory

I have parent folder and inside this folder I have 4 files ParentFolder File1.txt File2.txt File3.txt File4.txt I wanted to create subfolders inside the parent folder and carry the name of the files then move every file…
user88036
1
2 3
20 21