wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 wcd - (Wherever Change Directory) (chdir) DOS Unix wcd [] [] Wcd , . . wcd . wcd , . , wcd . wcd Norton Change Directory (NCD). NCD The Norton Utilities, Release 4 DOS 1987 (Peter Norton). Wcd : command.com DOS, cmd.exe PowerShell Windows, cmd.exe OS/2 Unix, Bourne (sh), Bourne Again (bash), Korn (ksh), Z (zsh) C (csh), , - . Wcd 8- Unicode. . wcd , - 1 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 . ( -), wcd , . , "/home/user/Desktop": wcd Desk , wcd . (, ). - wcd -: * - ( ) ? [] , [!] [^] - , . . : __, , "0-9" "A-Z". "[..]" "[0-9a-zA-Z_]". ( 8- ), . "[]*?!^-\" "[..]" , ("\"). - 2 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 - . , - , top: wcd *top , - top: wcd *top* - , a, b c: wcd [a-c]* , . wcd , Desk, *me/Desk*. wcd me/Desk - , . : wcd src*/*1?/a*2 -, wcd , wcd , -. -w. -g. wcd -g - 3 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 Wcd (treedata) , . Unix Windows wcd treedata , . wcd . , wcd , treedata. : wcd .. wcd , , treedata, treedata. . -k. Wcd . 10. . . -z, -, + =. , , -u. DOS Windows /, \. DOS Windows . . wcd d:games - 4 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 UNC Windows Windows ( , PowerShell, MSYS, zsh, cygwin) UNC LAN Windows SMB , "\\_\_". wcd Windows UNC pushd. In Windows PowerShell, MSYS, zsh Cygwin UNC. UNC . Windows wcd Windows 10 ConEmu (. <https://conemu.github.io/>), 6.0.3. Windows 10 ( ). , . F5. wcd . . (stdin/stdout). . <Enter>. . . . - 5 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 conio. . . . , . , , . , -N. curses. conio. wcd curses . . vim(1). -g. -o stdin/stdout. -a . . . -aa (treedata). -A - 6 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 , , (treedata). : wcd -A . wcd -A /home -A /etc wcd -A d: -A e: -A \\server\share Windows Windows : "wcd -A \\_". . -S, -s -E. -b . Wcd . , wcd . (ban) . -. . . , -xf. -c, --direct-cd CD. , wcd : 1. (treedata). 2. , , . CD wcd . - 7 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 1. C , . 2. , (treedata). -d ( DOS). , C:, HOME. , C: . -, + =. -e . . -ee (treedata). -E , , (treedata). . -A -S. -f . . +f _ . -g ( curses). - 8 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 Wcd curses. . vim(1). , wcd . , . NCD DOS. , NCD . NCD, DOS 12 (8.3) . . wcd, . , - . wcd NCD. , , , . . - 9 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 -Ta, -TC -Tc. -gd (treedata) (stdout). -G . , Unix, "wcd -G " /wcd.go. -GN, --no-go-script . -j, wcd . -h, --help . -i, --ignore-case . wcd DOS Windows . Unix/Cygwin . +i, --no-ignore-case . . -i. -I, --ignore-diacritics . . : CP437, CP850, CP852, CP1250, CP1252, ISO-8859-1, ISO-8859-2 Unicode Latin-1, Latin Extended-A, Latin Extended-B. . <https://uk.wikipedia.org/wiki/_> +I, --no-ignore-diacritics - 10 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 (). . -I. -j, --just-go . wcd , . Wcd . wcd , . Wcd , (stdout). . POSIX : wcd () { cd "$($HOME/bin/wcd.exe -j $@)" } , $(), . wcd () { cd "`$HOME/bin/wcd.exe -j $@`" } Windows, 4NT, : alias wcd `cd %@execstr[wcdwin32.exe -z 0 -j %1]` , , -j - 11 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 -GN. -k, --keep-paths . , wcd . , wcd . , . -K, --color . -l _ . Wcd . . -ls (). -m . -L, --license . -M . -n . - 12 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 . wcd +S. , _ . . , "/mnt/network": wcd -n /mnt/network src Wcd "/mnt/network/". . +n . . -n. -N, --numbers . Wcd conio curses (. ) , . -N, . -N, . -o stdin/stdout. conio curses wcd , stdin/stdout -o. - 13 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 -od, --to-stdout stdout. -q, --quiet . . -r . , wcd . -rmtree . Wcd . -s , $HOME. HOME , , , /. . "WCDSCAN". . . -S , , . . -A, -s -E. , - 14 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 -A . : Unix: wcd -S / wcd -S /home -A /etc -A /usr DOS/Windows: wcd -S c:/ wcd -S c: -A d: -A \\server\share Windows Windows : "wcd -S \\_". +S , , . , -n +n. : "wcd -n ". -t , "/tmp_mnt" ( Unix) , wcd "/tmp_mnt/" . "/tmp_mnt" . -t. -T, --ascii-tree ASCII. , . -Ta, --alt-tree-nav - 15 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 . NCD -Ta . , Windows KDE Konqueror Linux. . , . Shift-A. , A. -TC, --center-tree . . t . , , NCD. -Tc, --compact-tree - 16 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 , , NCD DOS. DOS 66 . , , . , wcd , , . -Tc m. -Td, --cjk-width (, ) Unicode . Chinese CP936 Windows Simsun. . , C. -u , , . . , WCDUSERSHOME. - 17 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 Unix/Cygwin "/home". Wcd "/home/USER/.treedata.wcd" "/home/USER/.wcd/.treedata.wcd", , , . DOS/Windows "\\users", , wcd "\\users\USER\treedata.wcd" "\\users\USER\.wcd\treedata.wcd". +u . -v, --verbose . wcd , . -V, --version . -w, --wild-match-only , -. -x _ . , wcd _ . - . -x . - 18 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 wcd -x <1> -x <2> -s -x (-s, -S, +S, -A, -E). DOS/Windows , HOME WCDHOME. : wcd -x c:/temp -S c: . wcd -x /temp -s -xf , . , wcd _ . - . . , wcd , . -xf . , ( wcd unix): wcd -xf ~/.ban.wcd -s -. , Subversion , , "*/.svn". - 19 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 -xf (-s, -S, +S, -A, -E). -y, --assume-yes . Wcd , . -rmtree. , , . -z . 10. 0. - , (-,+,=). , 10. : wcd -z 50 - 50, wcd . : wcd - -z 50 Wcd , 10. -z 50 . wcd , - 20 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 . POSIX : wcd () { wcd.exe -z 50 "$@" . ${WCDHOME:-${HOME}}/bin/wcd.go } ] -[ . . . "wcd -" . , . : "wcd -3". . ] +[ . . . "wcd +" . , . : "wcd +2". . = . , . . , "*". Unix - 21 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 cd(1). . ( ), wcd. Wcd . HOME WCDHOME. . . POSIX POSIX (ksh, bash, zsh, etc.) Unix, Linux, Cygwin MSYS (, Bash "$HOME/.bashrc"): wcd () { PATH/wcd.exe "$@" . ${WCDHOME:-${HOME}}/bin/wcd.go } _ , wcd. . , "wcd.go", . Wcd bash DJGPP DOS bash OS/2 bash . "bin" , WCDHOME HOME, c:/. DOS bash: - 22 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 wcd () { PATH/wcdbash.exe "$@" . ${WCDHOME:-${HOME:-"c:"}}/wcd.go } OS/2 bash: wcd () { PATH/wcdos2bash.exe "$@" . ${WCDHOME:-${HOME:-"c:"}}/wcd.go } wcd WinZsh . go c:/. wcd () { PATH/wcdwin32zsh.exe "$@" . ${WCDHOME:-${HOME}}/wcd.go } . C- (csh, tcsh) , "$HOME/.cshrc" "$HOME/.tcshrc" : if ( ${?WCDHOME} ) then alias wcd "PATH/wcd.exe \!* ; source $WCDHOME/bin/wcd.go" else alias wcd "PATH/wcd.exe \!* ; source $HOME/bin/wcd.go" endif _ , wcd. . Windows zip "bin" PATH. Windows, - 23 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 Windows (Command Prompt) , .bat. "wcd.ba" wcd, , "wcdgo.bat". "wcd.bat" "wcdgo.bat", . Windows VISTA Windows VISTA . , . : , ___. Windows PowerShell PowerShell. $profile. HOME WCDHOME. function wcd { PATH\wcdwin32psh.exe $args & $env:HOME\wcdgo.ps1 } _ , wcd. PowerShell. Wcd PowerShell . . OS/2 OS/2 (cmd.exe) OS/2 . wcd ("wcdgo.cmd"), - 24 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 . "wcd.cmd" "wcdos2.exe", "wcdgo.cmd". "wcd.cmd" wcdgo.cmd. LANG LANG. LANG . . , , . : . . POSIX: export LANG=uk export LANG=uk_UA , export LANG=ru_UA , export LANG=es_ES , export LANG=es_MX , export LANG=en_USiso88591 , , Latin-1 gettext(1): <http://www.gnu.org/software/gettext/manual/gettext.html#Language-Codes>. Unix locale(1). LANGUAGE LANGUAGE . . wcd LANGUAGE LANG. , , : "LANGUAGE=nl:de". , - 25 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 LANG ( LC_ALL) , C. LANGUAGE. gettext: <http://www.gnu.org/software/gettext/manual/gettext.html#The-LANGUAGE-variable> , , . WCDLOCALEDIR WCDLOCALEDIR LOCALEDIR, . LOCALEDIR wcd . GNU "/usr/local/share/locale". LOCALEDIR "wcd -V". wcd , , WCDLOCALEDIR , . cmd Windows: set WCDLOCALEDIR=c:/my_prefix/share/locale POSIX: export WCDLOCALEDIR=$HOME/share/locale LC_COLLATE wcd , . . - 26 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 LANG, , . , , , . LC_COLLATE, LANG. LC_COLLATE "C" "POSIX", . , , , : export LANG=uk_UA export LC_COLLATE=C LC_CTYPE wcd LC_CTYPE, LANG. , UTF-8, : export LC_CTYPE=en_US.UTF-8 LC_ALL , , LC_, LC_ALL. Wcd LC_ALL LC_COLLATE LC_CTYPE. WINDOWS : - 27 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 DOS (OEM) Windows (ANSI). Windows, , ANSI CP1252. Windows, notepad, ANSI. Windows OEM (CP437 CP850) DOS. wcd DOS Windows, , DOS. wcd DOS Windows. wcd Windows Windows, ANSI Windows. , Windows CP1252 . , , wcd Windows ANSI Unicode PowerShell. OEM, Windows, , Lucida Console, Unicode ( ANSI) . wcd Unicode __ 5.2.0 ANSI. ( 1252), wcd Windows , , . - 28 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 Windows . Windows "chcp". "wcd -V". Windows, "chcp". UNICODE wcd Unicode. , wcd Unicode, "wcd -V". , . Unicode wcd . . Unicode , . Wcd libc UTF-8 . . <http://www.cl.cam.ac.uk/~mgk25/unicode.html> wcd Unicode . , wcd , "wcd -V". wcd Unicode Unicode _ . Unicode . . <http://en.wikipedia.org/wiki/Unicode_normalization> UTF-8 _Unix/Linux UTF-8, - 29 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 UTF-8. xterm, XFree86 4.0 , UTF-8. , xterm(1) UTF-8 iso10646-1, : LC_CTYPE=en_GB.UTF-8 xterm -u8 -fn '-Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1' GNU/Linux UTF-8. , . wcd , . (BOM) . UTF-16 _Windows Windows Unicode PowerShell Windows Windows 7 ( ). Unicode Take Command TCC/LE JP Software, Windows (XP/Vista). Windows UTF-16. Windows Unicode Unicode ANSI. , , , Unicode . - 30 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 Wcd Unicode UTF-16 UTF-8 . UTF-8. wcd Unicode. Wcd UTF-8. Windows PowerShell UTF-8, BOM UTF-8. Windows 7, Windows Unicode . UTF-8, _ _ (BOM). 65001 (UTF-8) cd. Wcd ("wcdgo.bat"). 65001, , , . , , True Type Lucida Console ( ). wcd Windows Unicode Unicode, 5.2.0, (BOM) (. <http://en.wikipedia.org/wiki/Byte_order_mark>), Unicode , ANSI . wcd Windows Unicode BOM UTF-8, 5.2.0, , notepad. - 31 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 UTF-8 _Cygwin Cygwin Unicode, 1.7. Cygwin Windows UTF-16 UTF-8. , , wcd, , UTF-8, Unix/Linux. UTF-8 LANG LC_CTYPE. , . Cygwin, True Type Lucida Console ( ). wcd Cygwin , wcd Unix. (BOM) . Cygwin. WCDHOME, WCDHOME HOME. "*.wcd" . . wcd Windows , DOS. wcd Cygwin Unix. wcd.exe . Unix , Unix cd. . . , wcd . - 32 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 , wcd . DOS: \treedata.wcd %HOME%\treedata.wcd Unix: $HOME/.treedata.wcd . , wcd . DOS: \extra.wcd %HOME%\extra.wcd Unix: $HOME/.extra.wcd wcd . . -b. -. DOS: \ban.wcd %HOME%\ban.wcd Unix: $HOME/.ban.wcd wcd. . -l. DOS: \alias.wcd %HOME%\alias.wcd Unix: $HOME/.alias.wcd stack wcd. -d. DOS: c:\stack.wcd %HOME%\stack.wcd Unix: $HOME/.stack.wcd WCDSTACKFILE. . . go , - 33 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 wcd.exe . . -d. Unix "$HOME/bin". -G. bash DOS: c:/wcd.go $HOME/wcd.go Windows: c:\wcdgo.bat %HOME%\wcdgo.bat Windows PowerShell: $env:HOME\wcdgo.ps1 WinZsh: $HOME/wcd.go Cygwin/MSYS: $HOME/bin/wcd.go OS/2: c:\wcdgo.cmd %HOME%\wcdgo.cmd OS/2 bash: c:/wcd.go $HOME/wcd.go Unix: $HOME/bin/wcd.go . . +S, -n +n. DOS: PATH\rtdata.wcd Unix: PATH/.rtdata.wcd HOME , wcd HOME , . . . WCDHOME. HOME , , -s. WCDSCAN. Unix, Cygwin, Windows PowerShell, WinZsh MSYS HOME WCDHOME. wcd . - 34 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 HOME DOS/Windows, wcd (treedata.wcd, extra.wcd, alias.wcd, ban.wcd, wcd.go) HOME. wcd wcd Unix. , wcd , HOME. . . : wcd -S c: -A d: -A e: . WCDHOME wcd WCDHOME. HOME WCDHOME, HOME WCDHOME. wcd 5.1.5 WCDHOME. . 5.1.5, WCDHOME . . -s. 5.1.5, WCDSCAN. DOS, Windows, OS/2: set WCDHOME=C:\Users\erwin\wcd POSIX: export WCDHOME="$HOME/.wcd" - 35 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 Csh: setenv WCDHOME "$HOME/.wcd" WCDSCAN HOME WCDSCAN. , , (Unix). DOS Windows . DOS, Windows, OS/2: set WCDSCAN=C:\Users\erwin;D:\data set WCDSCAN=%HOMEDRIVE%%HOMEPATH%;\\projectdrive\projectX POSIX: export WCDSCAN="$HOME:/projectdisk/projectX" Csh: setenv WCDSCAN "$HOME:/projectdisk/projectX" WCDFILTER WCDFILTER. , , . . PATH. , , . DOS, Windows, OS/2: - 36 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 set WCDFILTER=projects;doc POSIX: export WCDFILTER="projects:doc" Csh: setenv WCDFILTER "projects:doc" WCDBAN , WCDBAN, wcd. . -b. PATH . WCDEXCLUDE , WCDEXCLUDE, wcd. . -x -xf. PATH . DOS, Windows, OS/2: set WCDEXCLUDE=*/windows;*/temp;*CVS POSIX: export WCDEXCLUDE="/dev:/tmp:*CVS" Csh: setenv WCDEXCLUDE "/dev:/tmp:*CVS" WCDUSERSHOME . DOS Windows - 37 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 "\\users". Unix Cygwin "/home". . . -u +u. wcd , . . -v. WCDSTACKFILE Wcd WCDSTACKFILE (. ). ( ). - : export WCDSTACKFILE=$HOME/.wcd/stack.$(date +%Y%m%d-%H%M%S) xterm(1) WINDOWID xterm: export WCDSTACKFILE=$HOME/.wcd/stack.$WINDOWID GNU screen(1), screen: export WCDSTACKFILE=$HOME/.wcd/stack.$WINDOW TERMINFO TERMINFO, wcd ncurses . , . - 38 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 "/usr/lib/terminfo" "/usr/share/terminfo". PDC_RESTORE_SCREEN Wcd PDCurses PDC_RESTORE_SCREEN. , PDCurses wcd; wcd . Windows: set PDC_RESTORE_SCREEN=1 Windows . . , wcd . SHELL 8- POSIX C "#!$SHELL" . , . bash Cygwin SHELL "export", wcd . BASH Wcd bash DOS $BASH $SHELL, $SHELL DOS. , $BASH "export", wcd . sh(1), bash(1), csh(1), ksh(1), zsh(1), locale(1), ncurses(1), Wcd Erwin Waterlander <waterlan@xs4all.nl> - 39 - Formatted: October 7, 2024 wcd(1) wcd wcd(1) 2023-04-23 2023-04-23 2023-04-23 : <http://waterlan.home.xs4all.nl/> SourceForge: <http://sourceforge.net/projects/wcd/> Jari Aalto <jari.aalto@cante.net>. NCD Brad Kingsbury "Norton Utilities" 1987 . . <http://www.softpanorama.org/OFM/norton_change_directory_clones.shtml> - 40 - Formatted: October 7, 2024