┌────────────────────────────────────────────────────────────────────┐
│ • MobaXterm Personal Edition v23.4 • │
│ (X server, SSH client and network tools) │
│ │
│ ⮞ Your computer drives are accessible through the /drives path │
│ ⮞ Your DISPLAY is set to 192.168.1.5:0.0 │
│ ⮞ When using SSH, your remote DISPLAY is automatically forwarded │
│ ⮞ Each command status is specified by a special symbol (✓ or ✗) │
│ │
│ • Important: │
│ This is MobaXterm Personal Edition. The Professional edition │
│ allows you to customize MobaXterm for your company: you can add │
│ your own logo, your parameters, your welcome message and generate │
│ either an MSI installation package or a portable executable. │
│ We can also modify MobaXterm or develop the plugins you need. │
│ For more information: https://mobaxterm.mobatek.net/download.html │
└────────────────────────────────────────────────────────────────────┘
17/12/2023 18:28.11 /home/mobaxterm pwd
/home/mobaxterm
✓
17/12/2023 18:28.20 /home/mobaxterm ls -a
. .bash_history Desktop MyDocuments file_12052023
.. .viminfo LauncherFolder fileDecFifth2023 folder1_11242023
✓
17/12/2023 18:28.27 /home/mobaxterm man crontab
Sorry, crontab man page not found.
✓
17/12/2023 18:28.36 /home/mobaxterm man
Sorry, man page not found.
✓
17/12/2023 18:28.47 /home/mobaxterm crontab
BusyBox v1.22.1 (2015-11-10 11:07:12 ) multi-call binary.
Usage: crontab [-c DIR] [-u USER] [-ler]|[FILE]
-c Crontab directory
-u User
-l List crontab
-e Edit crontab
-r Delete crontab
FILE Replace crontab by FILE ('-': stdin)
✗
17/12/2023 18:28.54 /home/mobaxterm help
MobaXterm local terminal documentation
1. Features
1.a. Windows interactions
- The open command
This command allows you to open your local files. This command will
open your documents using the Windows default association for your document
type.
open http://mobaxterm.mobatek.net/versions.php
open MyDocuments/MyWork.pdf
NB: Since MobaXterm version 2.4, you can open files, directories or URL by simply Ctrl+clicking on them.
- The cygpath command
This command allows you to work with dos/unix paths. You can obtain
the Dos path from a given Unix path and vice-versa. You can also list your
computer paths like the Windows, System, Desktop, Profiles and Start Menu
paths.
echo "/bin PATH = $(cygpath -w /bin)"
echo "System PATH = $(cygpath -u -S)"
- The /drives mount path
This directory contains a mount point for each drive of your computer.
You can for example browse your system drive by cd to /drives/c/
cat /drives/c/Windows/win.ini
--More--
✗
17/12/2023 18:29.19 /home/mobaxterm ls -a
. .bash_history Desktop MyDocuments file_12052023
.. .viminfo LauncherFolder fileDecFifth2023 folder1_11242023
✓
17/12/2023 18:29.24 /home/mobaxterm cd /
✓
17/12/2023 18:29.36 / ls -a
. bin etc mnt registry usr
.. cygdrive home mx86_64b sbin var
CygUtilsLicenses.html dev lib opt src
RemoteFiles drives media proc tmp
✓
17/12/2023 18:29.39 / ll
total 98
-rw-r--r-- 1 Administ UsersGrp 44259 Nov 24 11:38 CygUtilsLicenses.html
drwxr-xr-x 1 Administ UsersGrp 0 Dec 17 18:28 RemoteFiles
drwxr-xr-x 1 Administ UsersGrp 0 Dec 17 18:28 bin
lrwxrwxrwx 1 Administ UsersGrp 7 Nov 24 11:38 cygdrive -> /drives
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 dev
dr-xr-xr-x 1 Administ UsersGrp 0 Dec 17 18:29 drives
drwxr-xr-x 1 Administ UsersGrp 0 Dec 17 18:28 etc
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 home
drwxr-xr-x 1 Administ UsersGrp 0 Dec 17 18:28 lib
lrwxrwxrwx 1 Administ UsersGrp 7 Nov 24 11:38 media -> /drives
lrwxrwxrwx 1 Administ UsersGrp 7 Nov 24 11:38 mnt -> /drives
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 mx86_64b
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 opt
dr-xr-xr-x 10 Administ UsersGrp 0 Dec 17 18:29 proc
lrwxrwxrwx 1 Administ UsersGrp 14 Nov 24 11:38 registry -> /proc/registry
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 sbin
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 src
drwxr-xr-x 1 Administ UsersGrp 0 Dec 17 18:28 tmp
drwxr-xr-x 1 Administ UsersGrp 0 Dec 17 18:28 usr
drwxr-xr-x 1 Administ UsersGrp 0 Dec 17 18:28 var
✓
17/12/2023 18:29.52 / cd etc/
✓
17/12/2023 18:32.00 /etc pwd
/etc
✓
17/12/2023 18:32.03 /etc ll
total 64
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 X11
-rw-r--r-- 1 Administ UsersGrp 18536 Dec 17 18:28 baseprofile
-rw-r--r-- 1 Administ UsersGrp 116 Nov 24 11:38 bash.bashrc
-rwxr-xr-x 1 Administ UsersGrp 13116 Nov 24 11:38 bash_completion
-rw-r--r-- 1 Administ UsersGrp 327 Dec 17 18:28 fstab
-rw-r--r-- 1 Administ UsersGrp 739 Nov 24 11:38 group
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 init.d
-rw-r--r-- 1 Administ UsersGrp 674 Nov 24 11:38 inputrc
-rw-r--r-- 1 Administ UsersGrp 33 Nov 24 11:38 machine-id
-rw-r--r-- 1 Administ UsersGrp 462 Nov 24 11:38 minirc.dfl
lrwxrwxrwx 1 Administ UsersGrp 47 Nov 24 11:38 networks -> /drives/C/Windows/system32/drivers/etc/networks
-rw-r--r-- 1 Administ UsersGrp 96 Nov 24 11:38 nsswitch.conf
-rw-r--r-- 1 Administ UsersGrp 1162 Nov 24 11:38 openbox
-rw-r--r-- 1 Administ UsersGrp 721 Nov 24 11:38 passwd
-rw-r--r-- 1 Administ UsersGrp 634 Nov 24 11:38 persistprofile.sh
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 pki
-rw-r--r-- 1 Administ UsersGrp 15417 Dec 17 18:28 profile
lrwxrwxrwx 1 Administ UsersGrp 47 Nov 24 11:38 protocol -> /drives/C/Windows/system32/drivers/etc/protocol
lrwxrwxrwx 1 Administ UsersGrp 47 Nov 24 11:38 services -> /drives/C/Windows/system32/drivers/etc/services
-rw-r--r-- 1 Administ UsersGrp 0 Dec 17 18:28 sessionsaliases.sh
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 setup
-rw-r--r-- 1 Administ UsersGrp 134 Dec 17 18:28 ssh_agent_env.sh
-rw-r--r-- 1 Administ UsersGrp 257 Dec 17 18:28 ssh_config
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 ssl
-rw-r--r-- 1 Administ UsersGrp 46022 Nov 24 11:38 termcap
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 version
-rw-r--r-- 1 Administ UsersGrp 547 Nov 24 11:38 vimrc.less
-rw-r--r-- 1 Administ UsersGrp 327 Nov 24 11:38 xmodmap.esc
-rwxr-xr-x 1 Administ UsersGrp 58 Nov 24 11:38 zprofile
-rw-r--r-- 1 Administ UsersGrp 114 Nov 24 11:38 zshrc
✓
17/12/2023 18:32.23 /etc ls -l
total 64
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 X11
-rw-r--r-- 1 Administ UsersGrp 18536 Dec 17 18:28 baseprofile
-rw-r--r-- 1 Administ UsersGrp 116 Nov 24 11:38 bash.bashrc
-rwxr-xr-x 1 Administ UsersGrp 13116 Nov 24 11:38 bash_completion
-rw-r--r-- 1 Administ UsersGrp 327 Dec 17 18:28 fstab
-rw-r--r-- 1 Administ UsersGrp 739 Nov 24 11:38 group
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 init.d
-rw-r--r-- 1 Administ UsersGrp 674 Nov 24 11:38 inputrc
-rw-r--r-- 1 Administ UsersGrp 33 Nov 24 11:38 machine-id
-rw-r--r-- 1 Administ UsersGrp 462 Nov 24 11:38 minirc.dfl
lrwxrwxrwx 1 Administ UsersGrp 47 Nov 24 11:38 networks -> /drives/C/Windows/system32/drivers/etc/networks
-rw-r--r-- 1 Administ UsersGrp 96 Nov 24 11:38 nsswitch.conf
-rw-r--r-- 1 Administ UsersGrp 1162 Nov 24 11:38 openbox
-rw-r--r-- 1 Administ UsersGrp 721 Nov 24 11:38 passwd
-rw-r--r-- 1 Administ UsersGrp 634 Nov 24 11:38 persistprofile.sh
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 pki
-rw-r--r-- 1 Administ UsersGrp 15417 Dec 17 18:28 profile
lrwxrwxrwx 1 Administ UsersGrp 47 Nov 24 11:38 protocol -> /drives/C/Windows/system32/drivers/etc/protocol
lrwxrwxrwx 1 Administ UsersGrp 47 Nov 24 11:38 services -> /drives/C/Windows/system32/drivers/etc/services
-rw-r--r-- 1 Administ UsersGrp 0 Dec 17 18:28 sessionsaliases.sh
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 setup
-rw-r--r-- 1 Administ UsersGrp 134 Dec 17 18:28 ssh_agent_env.sh
-rw-r--r-- 1 Administ UsersGrp 257 Dec 17 18:28 ssh_config
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 ssl
-rw-r--r-- 1 Administ UsersGrp 46022 Nov 24 11:38 termcap
drwxr-xr-x 1 Administ UsersGrp 0 Nov 24 11:38 version
-rw-r--r-- 1 Administ UsersGrp 547 Nov 24 11:38 vimrc.less
-rw-r--r-- 1 Administ UsersGrp 327 Nov 24 11:38 xmodmap.esc
-rwxr-xr-x 1 Administ UsersGrp 58 Nov 24 11:38 zprofile
-rw-r--r-- 1 Administ UsersGrp 114 Nov 24 11:38 zshrc
✓
17/12/2023 18:37.33 /etc net
net.exe netcat NetEvtFwdr.exe Netplwiz.exe NETSTAT.EXE
net1.exe netcfg.exe NetHost.exe netprofm.mof NetTrace.PLA.Diagnostics.xml
netbtugc.exe NetCfgNotifyObjectHost.exe netiougc.exe netsh.exe networkitemfactory.mof
17/12/2023 18:37.33 /etc net
net.exe netcat NetEvtFwdr.exe Netplwiz.exe NETSTAT.EXE
net1.exe netcfg.exe NetHost.exe netprofm.mof NetTrace.PLA.Diagnostics.xml
netbtugc.exe NetCfgNotifyObjectHost.exe netiougc.exe netsh.exe networkitemfactory.mof
17/12/2023 18:37.33 /etc cat pro
profile protocol
17/12/2023 18:37.33 /etc cat profile
[ "$SHELL" = "/bin/zsh.exe" ] || SHELL="/bin/bash.exe"
_tob() {
[ -e "/bin/busybox.exe" ] && /bin/busybox.exe "$@" || /bin/toybox.exe "$@"
}
unset MAILCHECK
export EXECIGNORE="*.dll"
builtin ulimit -c 0
[ -d "/home/mobaxterm/" ] || _tob mkdir -p /home/mobaxterm
[ -d "/home/$USERNAME/" ] || _tob ln -sf /home/mobaxterm "/home/$USERNAME" 2>/dev/null
[ -n "$MOBASTARTUPDIR" ] && cd "${MOBASTARTUPDIR}" 2>/dev/null || cd "/home/mobaxterm" 2>/dev/null
PATH="/usr/bin:/bin:$PATH"
HOME="/home/mobaxterm"
TEMP="/tmp"
TMP="/tmp"
export LIBGL_ALWAYS_INDIRECT=1
[ -z "$VERSION" ] && VERSION="23.4"
[ -z "$DISPLAY" ] && DISPLAY="127.0.0.1:0"
if [ "$SHELL" = "/bin/zsh.exe" ]; then
setopt PROMPT_SUBST
NP=0
if [ "$PROMPT_TYPE" = "rxvt" ]; then
PS1='
%B%F{y}[%D %*]%f%b%F{def} %F{m}%~%F{def}
%F{c}[%n.%m]%F{def} > '
elif [ "$PROMPT_TYPE" = "1" ]; then
PS1='
%B%F{y}[%D %*]%f%b%F{def} %F{m}%~%F{def}
%F{c}[%n.%m]%F{def} ➤ '
precmd() {
builtin print -Pn "\e]0;$PWD\a"
}
else
if [ "$PROMPT_TYPE" = "2" ] && [ "${LC_ALL##*.}" = "UTF-8" ]; then
_gp() {
IsGit=0; GitDir="$PWD"; while [[ "${#GitDir}" -gt "1" ]] && [[ "$IsGit" == "0" ]]; do if [ -d "$GitDir/.git" ] && [ ! -e "$GitDir/.git/nawakom" ]; then IsGit=1; else GitDir=${GitDir%/*}; fi; done
if [ "$IsGit" = "1" ]; then
builtin echo -e "${GitDir%/*}/%F{blue}${GitDir##*/}%F{black}${PWD/$GitDir/} %K{red}%F{yellow}\uE0B0%F{black} \uE0A0 ${${$(< "$GitDir/.git/HEAD")##* }/refs\/heads\//} %K{reset}%F{red}\uE0B0%F{reset} "
else
builtin echo -e "$PWD %K{reset}%F{yellow}\uE0B0%F{reset}%K{reset} "
fi
}
PS1=$'`r0=$?;if [ -z "$NP" ]; then [ $r0 = 0 ] && s0="%F{green}%{\e(0%}d" || s0="%F{red}%{\e(0%}e";builtin echo -e "${(l:$[COLUMNS-4]:: :):-}$s0";fi`%{\e(B%}%{\e[0m%}
\n\e[m%K{blue}%F{black} \uE0E8 %D %K{green}%F{blue}\uE0B0%F{black} \uE0E9 %* %K{yellow}%F{green}\uE0B0%F{black} \uE0EA $(_gp)'
else
PS1='`r0=$?;if [ -z "$NP" ]; then [ $r0 = 0 ] && s0="%F{green}%{\e(0%}d" || s0="%F{red}%{\e(0e%}";builtin echo -e "\n%{\e[1;30m\e(0%}${(l:$[COLUMNS-4]::q:):-}%{\e(B%} $s0%{\e(B\e[0m%}";fi`
%B%F{y}[%D %*]%f%b%F{def} %F{m}%~%F{def}
%F{c}[%n.%m]%F{def} ➤ '
fi
precmd() {
[ "$NP" = "0" ] && NP=1 || unset NP; builtin print -Pn "\e]0;$PWD\a"
}
export NP
fi
StatusLine="For more info, type \e[35mhelp\e[0m or click on the help button above. "
elif [ "$PROMPT_TYPE" = "0" ] || [ "$PROMPT_TYPE" = "2" ]; then
NP=0
if [ "$PROMPT_TYPE" = "2" ] && [ "${LC_ALL##*.}" = "UTF-8" ]; then
[ -z "$COLUMNS" ] && COLUMNS="80"
PROMPT_COMMAND='r0=$?;if [ "${NP:-8}" != "0" ]; then [ $r0 = 0 ] && builtin echo -ne "\e[$[COLUMNS-1]C\e[1;32m\e(0d\e(B\e[0m\n" || builtin echo -ne "\e[$[COLUMNS-1]C\e[31m\e(0e\e(B\e[0m\n";else unset NP;fi;history -a;[ ${#PWD} -gt $[COLUMNS-60] ] && builtin echo'
_gp() {
MyPwd="$PWD"; MaxLen=$[COLUMNS-10]; if [ ${#MyPwd} -gt $MaxLen ]; then _Suf="/.../${PWD##*/}"; while [ $[${#MyPwd}+${#_Suf}] -gt $MaxLen ] && [ ${#MyPwd} -gt 2 ]; do MyPwd="${MyPwd%/*}"; done; MyPwd="$MyPwd$_Suf"; fi
SetIt=0
[ "$1" == "1" ] && [ ${#MyPwd} -gt $[COLUMNS-60] ] && SetIt=1
[ "$1" == "2" ] && [ ${#MyPwd} -lt $[COLUMNS-60+1] ] && SetIt=1
if [ "$SetIt" == "1" ]; then
IsGit=0; GitDir="$PWD"; while [ ${#GitDir} -gt 1 ] && [ "$IsGit" == "0" ]; do if [ -d "$GitDir/.git" ] && [ ! -e "$GitDir/.git/nawakom" ]; then IsGit=1; else GitDir=${GitDir%/*}; fi; done
if [ "$IsGit" = "1" ]; then
TmpStr="$(< "$GitDir/.git/HEAD")"
TmpStr="${TmpStr##* }"
TmpStr="${TmpStr/refs\/heads\//}"
TmpStr2="${PWD/$GitDir/}"
if [ $[${#GitDir}+${#TmpStr2}] -gt $[COLUMNS-18] ]; then
_Suf="${GitDir##*/}"
while [ $[${#GitDir}+${#TmpStr2}] -gt $[COLUMNS-24] ] && [ ${#GitDir} -gt $[${#_Suf}+2] ]; do
GitDir="${GitDir#*/}"
done
GitDir="/.../$GitDir"
if [ $[${#GitDir}+${#TmpStr2}] -gt $[COLUMNS-18] ]; then
TmpStr2="/.../${TmpStr2##*/}"
fi
fi
[ "$1" == "1" ] && builtin echo -e "\001\e[43m\e[30m\002 \001\xEE\002\x83\xAA ${GitDir%/*}/\001\e[34m\002${GitDir##*/}\001\e[30m\002${TmpStr2} \001\e[41m\e[33m\002\001\xEE\x82\002\xB0\001\e[30m\002 \001\xEE\x82\002\xA0 $TmpStr \001\e[0m\e[31m\002\001\xEE\x82\002\xB0\001\e[m\e[0m\002 "
[ "$1" == "2" ] && builtin echo -e "\001\e[43m\002\001\xEE\x82\002\xB0\001\e[30m\002 \001\xEE\002\x83\xAA ${GitDir%/*}/\001\e[34m\002${GitDir##*/}\001\e[30m\002${TmpStr2} \001\e[41m\e[33m\002\001\xEE\x82\002\xB0\001\e[30m\002 \001\xEE\x82\002\xA0 $TmpStr \001\e[0m\e[31m\002"
else
[ "$1" == "1" ] && builtin echo -e "\001\e[43m\e[30m\002 \001\xEE\002\x83\xAA $MyPwd \001\e[0m\e[0m\e[33m\002\001\xEE\x82\002\xB0\001\e[m\e[0m\002 "
[ "$1" == "2" ] && builtin echo -e "\001\e[43m\002\001\xEE\x82\002\xB0\001\e[30m\002 \001\xEE\002\x83\xAA $MyPwd \001\e[m\e[0m\e[33m\002"
fi
fi
}
export -f _gp
PS1=$'\[\e]0;$PWD\007\]$(_gp 1)
\[\e[44m\e[30m\] \[\xEE\]\x83\xA8 \D{%d/%m/%Y} \[\e[42m\e[34m\]\[\xEE\x82\]\xB0\[\e[30m\] \[\xEE\]\x83\xA9 \D{%H:%M.%S} \[\e[0m\e[32m\]$(_gp 2)\[\xEE\x82\]\xB0\[\e[0m\] '
else
PROMPT_COMMAND='r0=$?;if [ "${NP:-8}" != "0" ]; then i0=0;s0="";while [ "$i0" -lt "${COLUMNS:-80}" ];do s0="q$s0";i0=$[$i0+1];done;builtin echo -ne "\n\e[1;30m\e(0$s0\e(B\e[0m"; [ $r0 = 0 ] && builtin echo -ne "\e[1A\e[1;32m\e(0d\e(B\e[0m\e[1B" || builtin echo -ne "\e[1A\e[31m\e(0e\e(B\e[0m\e[1B";else unset NP;fi;history -a'
PS1='\[\e]0;$PWD\007\]
\[\e[1;33m\][\D{%Y-%m-%d %H:%M.%S}]\[\e[0m\] \[\e[35m\]\w\[\e[0m\]
\[\e[36m\][\u.\h]\[\e[0m\] \[\e(0\]b\[\e(B\] '
fi
export NP
StatusLine="Each command status is specified by a special symbol (\e[1;32m\e(0d\e(B\e[0m or \e[31m\e(0e\e(B\e[0m) "
else
if [ "$PROMPT_TYPE" = "rxvt" ]; then
PS1='
\[\e[1;33m\][\D{%Y-%m-%d %H:%M.%S}]\[\e[0m\] \[\e[1;35m\]\w\[\e[0m\]
\[\e[1;36m\][\u.\h]\[\e[0m\] > '
elif [ "$PROMPT_TYPE" = "1" ]; then
PS1='\[\e]0;$PWD\007\]
\[\e[1;33m\][\D{%Y-%m-%d %H:%M.%S}]\[\e[0m\] \[\e[35m\]\w\[\e[0m\]
\[\e[36m\][\u.\h]\[\e[0m\] \[\e(0\]b\[\e(B\] '
else
PS1='
\[\e[1;33m\][\D{%Y-%m-%d %H:%M.%S}]\[\e[0m\] \[\e[35m\]\w\[\e[0m\]
\[\e[36m\][\u.\h]\[\e[0m\] \[\e(0\]b\[\e(B\] '
fi
PROMPT_COMMAND="history -a"
StatusLine="For more info, type \e[35mhelp\e[0m or click on the help button above. "
fi
HISTCONTROL=ignoredups
export HISTIGNORE="exit:reset"
if [ "$SHELL" = "/bin/zsh.exe" ]; then
HISTFILE=/home/mobaxterm/.zsh_history
else
HISTFILE=/home/mobaxterm/.bash_history
fi
HISTSIZE=36000
SAVEHIST=36000
TMOUT=0
KRB5CCNAME=FILE:/etc/krb5_cc_cache
KRB5_CONFIG=/etc/krb5.conf
EDITOR=/bin/vim
GIT_EDITOR=/bin/MobaGitEditor
SCREENDIR="/drives/C/Users/ADMINI~1/AppData/Roaming/MOBAXT~1/slash/tmp/s1001"
TMUX_TMPDIR="/drives/C/Users/ADMINI~1/AppData/Roaming/MOBAXT~1/slash/tmp/s1001"
VISUAL=/bin/vicron
HISTTIMEFORMAT="[%Y-%m-%d %H:%M:%S] "
export TMP TEMP SHELL PATH VERSION HOME DISPLAY PS1 PROMPT_COMMAND HISTCONTROL HISTIGNORE HISTFILE HISTSIZE SAVEHIST TMOUT KRB5CCNAME KRB5_CONFIG EDITOR GIT_EDITOR VISUAL HISTTIMEFORMAT SCREENDIR TMUX_TMPDIR
if [ -n "$FIRSTTIME" ]; then
if [ "$TERM" = "xterm" ]; then
if [ "$POPUPMODE" = "yes" ]; then
builtin echo -e "\e[0m \e(0lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk\e(B
\e(0x\e(B \e[1;32m\e(0\`\e(B MobaXterm Personal Edition v23.4 \e(0\`\e(B\e[0m \e(0x\e(B
\e(0x\e(B \e[1;33m(X server, SSH client and network tools)\e[0m \e(0x\e(B
\e(0x\e(B \e(0x\e(B
\e(0x\e(B \e(0b\e(B Your computer drives are accessible through the \e[35m/drives\e[0m path \e(0x\e(B
\e(0x\e(B \e(0b\e(B Your DISPLAY is set to \e[35m`printf "%-24s" "${EXPORTED_DISPLAY}"`\e[0m \e(0x\e(B
\e(0x\e(B \e(0b\e(B `printf "%-76s" "Use \e[36m$POPUPKEY\e[0m to close this console"`\e(0x\e(B
\e(0x\e(B \e(0b\e(B `printf "%-76s" "Use \e[36m$SHOWHIDEKEY\e[0m to iconify MobaXterm"`\e(0x\e(B
\e(0mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj\e(B"
elif [ "$DWMMODE" = "yes" ]; then
builtin echo -e "\e[0m \e(0lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk\e(B
\e(0x\e(B \e[1;32m\e(0\`\e(B MobaXterm Personal Edition v23.4 \e(0\`\e(B\e[0m \e(0x\e(B
\e(0x\e(B \e[1;33m(X server, SSH client and network tools)\e[0m \e(0x\e(B
\e(0x\e(B \e(0x\e(B
\e(0x\e(B This is an \e[1;35mX11\e[0m session with the \"tiling\" window manager \e[1;35mDWM\e[0m \e(0x\e(B
\e(0x\e(B \e(0x\e(B
\e(0x\e(B In this frame, X11 windows are managed in \e[1;36mtile\e[0m or \e[1;36mfloat\e[0m mode. \e(0x\e(B
\e(0x\e(B - \e[1;31mTile mode\e[0m: windows are automatically placed side by side \e(0x\e(B
\e(0x\e(B - \e[1;31mFloat mode\e[0m: windows can be resized and moved freely using \e(0x\e(B
\e(0x\e(B \e[1;36mAlt + Left-click\e[0m for moving and \e[1;36mAlt + Right-click\e[0m for resizing \e(0x\e(B
\e(0x\e(B \e(0x\e(B
\e(0x\e(B The small bottom \e[1;35mtaskbar\e[0m allows you to: \e(0x\e(B
\e(0x\e(B - Switch from float to tile mode by clicking on the \e[1;33mleft\e[0m \e(0x\e(B
\e(0x\e(B - Swap windows positions by clicking on the \e[1;33mmiddle\e[0m \e(0x\e(B
\e(0x\e(B - Start a new RXVT console by clicking on the \e[1;33mright\e[0m \e(0x\e(B
\e(0mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj\e(B"
elif [ "$PROMPT_TYPE" != "rxvt" ]; then
builtin echo -e "\e[0m \e(0lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk\e(B
\e(0x\e(B \e[1;32m\e(0\`\e(B MobaXterm Personal Edition v23.4 \e(0\`\e(B\e[0m \e(0x\e(B
\e(0x\e(B \e[1;33m(X server, SSH client and network tools)\e[0m \e(0x\e(B
\e(0x\e(B \e(0x\e(B
\e(0x\e(B \e(0b\e(B Your computer drives are accessible through the \e[35m/drives\e[0m path \e(0x\e(B
\e(0x\e(B \e(0b\e(B Your DISPLAY is set to \e[35m`printf "%-24s" "${EXPORTED_DISPLAY}"`\e[0m \e(0x\e(B
\e(0x\e(B \e(0b\e(B When using \e[35mSSH\e[0m, your remote DISPLAY is automatically forwarded \e(0x\e(B
\e(0x\e(B \e(0b\e(B ${StatusLine}\e(0x\e(B
\e(0x\e(B \e(0x\e(B
\e(0x\e(B \e[31m\e(0\`\e(B Important:\e[0m \e(0x\e(B
\e(0x\e(B \e[36mThis is MobaXterm Personal Edition. The Professional edition\e[0m \e(0x\e(B
\e(0x\e(B \e[36mallows you to customize MobaXterm for your company: you can add\e[0m \e(0x\e(B
\e(0x\e(B \e[36myour own logo, your parameters, your welcome message and generate\e[0m \e(0x\e(B
\e(0x\e(B \e[36meither an MSI installation package or a portable executable.\e[0m \e(0x\e(B
\e(0x\e(B \e[36mWe can also modify MobaXterm or develop the plugins you need.\e[0m \e(0x\e(B
\e(0x\e(B \e[1;33mFor more information: \e[0m\e[35m\e[4mhttps://mobaxterm.mobatek.net/download.html\e[0m \e(0x\e(B
\e(0mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj\e(B"
fi
unset FIRSTTIME
unset StatusLine
if [ "$SHELL" = "/bin/zsh.exe" ]; then
[ -e "/usr/share/zsh.tar" ] && _tob tar -C /usr/share -xf /usr/share/zsh.tar && _tob rm -f /usr/share/zsh.tar
setopt noautomenu
setopt nomenucomplete
setopt INC_APPEND_HISTORY
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_REDUCE_BLANKS
setopt HIST_VERIFY
setopt EXTENDED_GLOB
setopt PROMPT_SUBST
unsetopt CASE_GLOB
unsetopt CASE_MATCH
setopt nocaseglob
unsetopt caseglob
unsetopt casematch
setopt complete_aliases
setopt +o nomatch
if [ ! -e "/home/mobaxterm/.zcompdump$CYGUTILSVERSION" ]; then
_tob rm -f /home/mobaxterm/.zcompdump*
autoload -Uz compinit
compinit -C
builtin echo > "/home/mobaxterm/.zcompdump$CYGUTILSVERSION"
else
autoload -Uz compinit
compinit -C
fi
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*:complete:-command-:*:*' ignored-patterns '*.dll|*.DLL|*.nls|*.NLS|*.log|*.ini|*.inf|*.sys|*.xml|*.png|*.ocx|*.cpl|*.msc|*.xsl|*.ax|*.acm|*.conf|*.dat|*.tlb|*.drv'
typeset -A key
key[Home]="$terminfo[khome]"
key[End]="$terminfo[kend]"
key[Insert]="$terminfo[kich1]"
key[Backspace]="$terminfo[kbs]"
key[Delete]="$terminfo[kdch1]"
key[Up]="$terminfo[kcuu1]"
key[Down]="$terminfo[kcud1]"
key[Left]="$terminfo[kcub1]"
key[Right]="$terminfo[kcuf1]"
key[PageUp]="$terminfo[kpp]"
key[PageDown]="$terminfo[knp]"
[[ -n "$key[Home]" ]] && bindkey -- "$key[Home]" beginning-of-line
[[ -n "$key[End]" ]] && bindkey -- "$key[End]" end-of-line
[[ -n "$key[Insert]" ]] && bindkey -- "$key[Insert]" overwrite-mode
[[ -n "$key[Backspace]" ]] && bindkey -- "$key[Backspace]" backward-delete-char
[[ -n "$key[Delete]" ]] && bindkey -- "$key[Delete]" delete-char
[[ -n "$key[Up]" ]] && bindkey -- "$key[Up]" up-line-or-history
[[ -n "$key[Down]" ]] && bindkey -- "$key[Down]" down-line-or-history
[[ -n "$key[Left]" ]] && bindkey -- "$key[Left]" backward-char
[[ -n "$key[Right]" ]] && bindkey -- "$key[Right]" forward-char
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
bindkey "\eOH" beginning-of-line
bindkey "\eOF" end-of-line
bindkey "^A" beginning-of-line
bindkey "^E" end-of-line
bindkey "^R" history-incremental-search-backward
bindkey "^H" backward-delete-char
bindkey "^?" backward-delete-char
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
bindkey "\e[5~" beginning-of-history
bindkey "\e[6~" end-of-history
bindkey "\e[3~" delete-char
bindkey "\e[2~" quoted-insert
bindkey "\e[5C" forward-word
bindkey "\e[5D" backward-word
if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then
function zle-line-init () {
echoti smkx
}
function zle-line-finish () {
echoti rmkx
}
zle -N zle-line-init
zle -N zle-line-finish
fi
else
shopt -s nocaseglob
shopt -s histappend
shopt -s checkwinsize
shopt -s dotglob
shopt -s no_empty_cmd_completion
. /etc/bash_completion
fi
function OpenIniFile {
echo 'Opening "C:\Users\ADMINI~1\AppData\Roaming\MobaXterm\MobaXterm.ini"...'
/bin/MobaBox.exe open 'C:\Users\ADMINI~1\AppData\Roaming\MobaXterm\MobaXterm.ini'
}
[ -e "/home/mobaxterm/.bashrc" ] && . /home/mobaxterm/.bashrc
[ -e "/etc/sessionsaliases.sh" ] && . /etc/sessionsaliases.sh 2>/dev/null
fi
fi
. /etc/baseprofile
_tob ls /etc/profile.d >/dev/null 2>/dev/null
if [ -d "/etc/profile.d" ]; then
for sc in `_tob ls /etc/profile.d/*.sh 2>/dev/null`; do . "$sc"; done 2>/dev/null
fi
✓
17/12/2023 18:40.39 /etc source
bash: source: filename argument required
source: usage: source filename [arguments]
✗
17/12/2023 18:44.15 /etc source profile
17/12/2023 18:44.33 /home/mobaxterm
10-20
1135
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交