Tag Info

New answers tagged

1

For tcsh, use this command: set prompt = "[%m:%/]%h\n% " And in Bash: export PS1="[\h:\w]\!\n% "


-1

sed 's/.$//' sed 's/.$//g' This should work. Worked for me


0

In BSD derived systems the canonical way to investigate the open file descriptors in another running process is to use the fstat(1) command (using the -p option to specify the process ID of interest). From the fstat output it may be possible to tell if the peer has closed a TCP connection. However if the problem is actually a bug in a program you have ...


5

where is a shell builtin command in csh where where where is a shell built-in the builtin is also available in zsh.


6

The only shells I know which has a builtin command called where is the tcsh and zsh. In the manual page of that shell (man tcsh / man zshbuiltins), you can find the definition: where command (+) Reports all known instances of command, including aliases, builtins and executables in path. Therefore it is the tcsh-equivalent of the ...


2

The linux command is called which. If you are used to in c-shells this might be a builtin. Bash builtins are documented through the bash builtin help. From Wikipedia:tcsh The built-in where command. Works like the which command but shows all locations of the target command in the directories specified in $PATH rather than only the one that will be used. ...



Top 50 recent answers are included