Tag Info

New answers tagged


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


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


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 ...


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


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 ...


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