Linux premium155.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
: 162.0.235.200 | : 3.144.253.195
Cant Read [ /etc/named.conf ]
7.4.33
varifktc
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
bin /
[ HOME SHELL ]
Name
Size
Permission
Action
7za
46
B
-rwxr-xr-x
GET
15.84
KB
-rwxr-xr-x
Mail
408.89
KB
-rwxr-xr-x
[
53.67
KB
-rwxr-xr-x
aclocal
35.62
KB
-rwxr-xr-x
aclocal-1.16
35.62
KB
-rwxr-xr-x
addr2line
33.41
KB
-rwxr-xr-x
animate
11.84
KB
-rwxr-xr-x
ar
61.96
KB
-rwxr-xr-x
arch
37.41
KB
-rwxr-xr-x
arpaname
11.82
KB
-rwxr-xr-x
as
889.91
KB
-rwxr-xr-x
aspell
159.5
KB
-rwxr-xr-x
at
1.01
KB
-rwxr-xr-x
atq
1.01
KB
-rwxr-xr-x
atrm
1.02
KB
-rwxr-xr-x
autoconf
14.42
KB
-rwxr-xr-x
autoheader
8.33
KB
-rwxr-xr-x
autom4te
31.43
KB
-rwxr-xr-x
automake
251.9
KB
-rwxr-xr-x
automake-1.16
251.9
KB
-rwxr-xr-x
autoreconf
20.57
KB
-rwxr-xr-x
autoscan
16.72
KB
-rwxr-xr-x
autoupdate
33.08
KB
-rwxr-xr-x
awk
669.77
KB
-rwxr-xr-x
b2sum
57.76
KB
-rwxr-xr-x
base32
41.55
KB
-rwxr-xr-x
base64
41.56
KB
-rwxr-xr-x
basename
37.49
KB
-rwxr-xr-x
bash
1.1
MB
-rwxr-xr-x
bashbug-64
7.18
KB
-rwxr-xr-x
batch
137
B
-rwxr-xr-x
bison
437.72
KB
-rwxr-xr-x
bunzip2
36.87
KB
-rwxr-xr-x
bzcat
36.87
KB
-rwxr-xr-x
bzcmp
2.08
KB
-rwxr-xr-x
bzdiff
2.08
KB
-rwxr-xr-x
bzgrep
1.64
KB
-rwxr-xr-x
bzip2
36.87
KB
-rwxr-xr-x
bzip2recover
16.45
KB
-rwxr-xr-x
bzless
1.23
KB
-rwxr-xr-x
bzmore
1.23
KB
-rwxr-xr-x
c++
1.21
MB
-rwxr-x---
c++filt
28.89
KB
-rwxr-xr-x
c89
224
B
-rwxr-x---
c99
215
B
-rwxr-x---
cagefs_enter.proxied
1.03
KB
-rwxr-xr-x
cal
65.98
KB
-rwxr-xr-x
captoinfo
85.31
KB
-rwxr-xr-x
cat
37.54
KB
-rwxr-xr-x
catchsegv
3.21
KB
-rwxr-xr-x
cc
1.2
MB
-rwxr-x---
chcon
70.43
KB
-rwxr-xr-x
chgrp
66.35
KB
-rwxr-xr-x
chmod
62.29
KB
-rwxr-xr-x
chown
70.39
KB
-rwxr-xr-x
chrt
37.18
KB
-rwxr-xr-x
cksum
37.46
KB
-rwxr-xr-x
cldetect
10.36
KB
-rwxr-xr-x
clear
12.54
KB
-rwxr-xr-x
clusterdb
70.23
KB
-rwxr-xr-x
cmp
103.76
KB
-rwxr-xr-x
col
29
KB
-rwxr-xr-x
colcrt
16.48
KB
-rwxr-xr-x
colrm
24.88
KB
-rwxr-xr-x
column
49.47
KB
-rwxr-xr-x
comm
41.63
KB
-rwxr-xr-x
compare
11.85
KB
-rwxr-xr-x
composite
11.84
KB
-rwxr-xr-x
conjure
11.84
KB
-rwxr-xr-x
convert
11.84
KB
-rwxr-xr-x
cp
148.05
KB
-rwxr-xr-x
cpan
7.87
KB
-rwxr-xr-x
cpp
1.21
MB
-rwxr-xr-x
createdb
70.22
KB
-rwxr-xr-x
createuser
74.63
KB
-rwxr-xr-x
crontab
1.36
KB
-rwxr-xr-x
crontab.cagefs
54.16
KB
-rwxr-xr-x
csplit
53.76
KB
-rwxr-xr-x
curl
230.08
KB
-rwxr-xr-x
cut
49.59
KB
-rwxr-xr-x
date
106.03
KB
-rwxr-xr-x
dbiprof
6.06
KB
-rwxr-xr-x
dd
78.05
KB
-rwxr-xr-x
delv
42.46
KB
-rwxr-xr-x
df
91.16
KB
-rwxr-xr-x
diff
268.01
KB
-rwxr-xr-x
diff3
128.6
KB
-rwxr-xr-x
dig
162.19
KB
-rwxr-xr-x
dir
139.97
KB
-rwxr-xr-x
dircolors
49.63
KB
-rwxr-xr-x
dirname
33.44
KB
-rwxr-xr-x
display
11.84
KB
-rwxr-xr-x
dnstap-read
20.43
KB
-rwxr-xr-x
dropdb
66.02
KB
-rwxr-xr-x
dropuser
65.99
KB
-rwxr-xr-x
du
107.1
KB
-rwxr-xr-x
echo
37.43
KB
-rwxr-xr-x
egrep
28
B
-rwxr-xr-x
enc2xs
40.97
KB
-rwxr-xr-x
enchant
21.08
KB
-rwxr-xr-x
enchant-lsmod
13.09
KB
-rwxr-xr-x
env
41.43
KB
-rwxr-xr-x
eps2eps
639
B
-rwxr-xr-x
eqn
232.16
KB
-rwxr-xr-x
ex
1.13
MB
-rwxr-xr-x
expand
41.66
KB
-rwxr-xr-x
expr
49.65
KB
-rwxr-xr-x
factor
86.05
KB
-rwxr-xr-x
false
33.39
KB
-rwxr-xr-x
fc-cache
132
B
-rwxr-xr-x
fc-cache-64
20.35
KB
-rwxr-xr-x
fc-cat
16.35
KB
-rwxr-xr-x
fc-conflist
12.25
KB
-rwxr-xr-x
fc-list
12.25
KB
-rwxr-xr-x
fc-match
16.26
KB
-rwxr-xr-x
fc-pattern
12.26
KB
-rwxr-xr-x
fc-query
12.24
KB
-rwxr-xr-x
fc-scan
12.26
KB
-rwxr-xr-x
fc-validate
16.26
KB
-rwxr-xr-x
fgrep
28
B
-rwxr-xr-x
file
24.68
KB
-rwxr-xr-x
find
223.3
KB
-rwxr-xr-x
flex
428.45
KB
-rwxr-xr-x
flex++
428.45
KB
-rwxr-xr-x
flock
33.2
KB
-rwxr-xr-x
fmt
45.57
KB
-rwxr-xr-x
fold
41.48
KB
-rwxr-xr-x
free
20.79
KB
-rwxr-xr-x
freetype-config
4.31
KB
-rwxr-xr-x
funzip
36.74
KB
-rwxr-xr-x
g++
1.21
MB
-rwxr-x---
gawk
669.77
KB
-rwxr-xr-x
gcc
1.2
MB
-rwxr-x---
gcc-ar
36.64
KB
-rwxr-xr-x
gcc-nm
36.65
KB
-rwxr-xr-x
gcc-ranlib
36.65
KB
-rwxr-xr-x
gcov
1.31
MB
-rwxr-xr-x
gcov-dump
566.9
KB
-rwxr-xr-x
gcov-tool
603.72
KB
-rwxr-xr-x
gem
542
B
-rwxr-xr-x
gencat
24.84
KB
-rwxr-xr-x
geoiplookup
21.89
KB
-rwxr-xr-x
geoiplookup6
21.65
KB
-rwxr-xr-x
geqn
232.16
KB
-rwxr-xr-x
getconf
32.46
KB
-rwxr-xr-x
getent
33.13
KB
-rwxr-xr-x
getopt
20.52
KB
-rwxr-xr-x
ghostscript
12.35
KB
-rwxr-xr-x
git
3.67
MB
-rwxr-xr-x
git-receive-pack
3.67
MB
-rwxr-xr-x
git-shell
2.13
MB
-rwxr-xr-x
git-upload-archive
3.67
MB
-rwxr-xr-x
git-upload-pack
3.67
MB
-rwxr-xr-x
gm
7.82
KB
-rwxr-xr-x
gmake
235.32
KB
-rwxr-xr-x
gneqn
908
B
-rwxr-xr-x
gnroff
3.23
KB
-rwxr-xr-x
gpg
1.04
MB
-rwxr-xr-x
gpg-agent
419.29
KB
-rwxr-xr-x
gpg-error
34.16
KB
-rwxr-xr-x
gpg-zip
3.44
KB
-rwxr-xr-x
gpgsplit
87.02
KB
-rwxr-xr-x
gpgv
451.58
KB
-rwxr-xr-x
gpic
293.84
KB
-rwxr-xr-x
gprof
103.36
KB
-rwxr-xr-x
grep
193.63
KB
-rwxr-xr-x
groff
124.92
KB
-rwxr-xr-x
grops
191.14
KB
-rwxr-xr-x
grotty
141.9
KB
-rwxr-xr-x
groups
37.47
KB
-rwxr-xr-x
gs
12.35
KB
-rwxr-xr-x
gsnd
277
B
-rwxr-xr-x
gsoelim
42.55
KB
-rwxr-xr-x
gtar
449.03
KB
-rwxr-xr-x
gtbl
154.61
KB
-rwxr-xr-x
gtroff
805.02
KB
-rwxr-xr-x
gunzip
2.29
KB
-rwxr-xr-x
gzexe
6.23
KB
-rwxr-xr-x
gzip
94.67
KB
-rwxr-xr-x
h2ph
28.69
KB
-rwxr-xr-x
h2xs
59.44
KB
-rwxr-xr-x
head
45.58
KB
-rwxr-xr-x
hexdump
57.5
KB
-rwxr-xr-x
host
142.3
KB
-rwxr-xr-x
hostid
33.41
KB
-rwxr-xr-x
hostname
21.16
KB
-rwxr-xr-x
hunspell
144.7
KB
-rwxr-xr-x
iconv
61.44
KB
-rwxr-xr-x
id
45.52
KB
-rwxr-xr-x
identify
11.84
KB
-rwxr-xr-x
idn
39.41
KB
-rwxr-xr-x
ifnames
4.03
KB
-rwxr-xr-x
import
11.84
KB
-rwxr-xr-x
infocmp
61.05
KB
-rwxr-xr-x
infotocap
85.31
KB
-rwxr-xr-x
install
156.25
KB
-rwxr-xr-x
instmodsh
4.1
KB
-rwxr-xr-x
ionice
28.98
KB
-rwxr-xr-x
ipcrm
28.99
KB
-rwxr-xr-x
ipcs
53.39
KB
-rwxr-xr-x
isosize
24.88
KB
-rwxr-xr-x
ispell
988
B
-rwxr-xr-x
join
53.77
KB
-rwxr-xr-x
kill
37.27
KB
-rwxr-xr-x
ld
1.71
MB
-rwxr-x---
ld.bfd
1.71
MB
-rwxr-x---
ldd
5.31
KB
-rwxr-xr-x
less
173.76
KB
-rwxr-xr-x
lessecho
12.4
KB
-rwxr-xr-x
lesskey
21.99
KB
-rwxr-xr-x
lesspipe.sh
3.07
KB
-rwxr-xr-x
lex
428.45
KB
-rwxr-xr-x
libnetcfg
15.41
KB
-rwxr-xr-x
libtool
359.11
KB
-rwxr-xr-x
libtoolize
126.17
KB
-rwxr-xr-x
link
33.41
KB
-rwxr-xr-x
ln
70.57
KB
-rwxr-xr-x
locale
56.45
KB
-rwxr-xr-x
localedef
307.47
KB
-rwxr-xr-x
logger
49.98
KB
-rwxr-xr-x
login
40.96
KB
-rwxr-xr-x
logname
33.42
KB
-rwxr-xr-x
look
16.45
KB
-rwxr-xr-x
ls
139.97
KB
-rwxr-xr-x
lynx
1.84
MB
-rwxr-xr-x
m4
185.56
KB
-rwxr-xr-x
mail
408.89
KB
-rwxr-xr-x
mailx
408.89
KB
-rwxr-xr-x
make
235.32
KB
-rwxr-xr-x
make-dummy-cert
610
B
-rwxr-xr-x
mariadb
4.36
MB
-rwxr-xr-x
mariadb-access
109.34
KB
-rwxr-xr-x
mariadb-admin
3.88
MB
-rwxr-xr-x
mariadb-binlog
4.17
MB
-rwxr-xr-x
mariadb-check
3.88
MB
-rwxr-xr-x
mariadb-dump
3.96
MB
-rwxr-xr-x
mariadb-find-rows
3.21
KB
-rwxr-xr-x
mariadb-import
3.87
MB
-rwxr-xr-x
mariadb-show
3.87
MB
-rwxr-xr-x
mariadb-waitpid
3.56
MB
-rwxr-xr-x
mc
1.3
MB
-rwxr-xr-x
mcdiff
1.3
MB
-rwxr-xr-x
mcedit
1.3
MB
-rwxr-xr-x
mcookie
33.26
KB
-rwxr-xr-x
mcview
1.3
MB
-rwxr-xr-x
md5sum
45.62
KB
-rwxr-xr-x
mesg
16.36
KB
-rwxr-xr-x
mkdir
82.79
KB
-rwxr-xr-x
mkfifo
66.56
KB
-rwxr-xr-x
mknod
70.55
KB
-rwxr-xr-x
mktemp
45.73
KB
-rwxr-xr-x
mogrify
11.84
KB
-rwxr-xr-x
montage
11.84
KB
-rwxr-xr-x
more
44.94
KB
-rwxr-xr-x
msql2mysql
1.41
KB
-rwxr-xr-x
mv
144.03
KB
-rwxr-xr-x
my_print_defaults
3.56
MB
-rwxr-xr-x
mysql
4.36
MB
-rwxr-xr-x
mysql_config
4.6
KB
-rwxr-xr-x
mysql_find_rows
3.21
KB
-rwxr-xr-x
mysql_waitpid
3.56
MB
-rwxr-xr-x
mysqlaccess
109.34
KB
-rwxr-xr-x
mysqladmin
3.88
MB
-rwxr-xr-x
mysqlbinlog
4.17
MB
-rwxr-xr-x
mysqlcheck
3.88
MB
-rwxr-xr-x
mysqldump
3.96
MB
-rwxr-xr-x
mysqlimport
3.87
MB
-rwxr-xr-x
mysqlshow
3.87
MB
-rwxr-xr-x
namei
33.1
KB
-rwxr-xr-x
nano
247.94
KB
-rwxr-xr-x
neqn
908
B
-rwxr-xr-x
nice
37.41
KB
-rwxr-xr-x
nl
45.63
KB
-rwxr-xr-x
nm
50.38
KB
-rwxr-xr-x
nohup
37.48
KB
-rwxr-xr-x
nproc
37.48
KB
-rwxr-xr-x
nroff
3.23
KB
-rwxr-xr-x
nslookup
146.26
KB
-rwxr-xr-x
nsupdate
73.05
KB
-rwxr-xr-x
numfmt
65.71
KB
-rwxr-xr-x
objcopy
240.07
KB
-rwxr-xr-x
objdump
419.76
KB
-rwxr-xr-x
od
73.88
KB
-rwxr-xr-x
openssl
745.95
KB
-rwxr-xr-x
pango-list
11.88
KB
-rwxr-xr-x
pango-view
57.44
KB
-rwxr-xr-x
passwd
1.02
KB
-rwxr-xr-x
paste
37.46
KB
-rwxr-xr-x
patch
206.46
KB
-rwxr-xr-x
pathchk
37.41
KB
-rwxr-xr-x
pdf2dsc
698
B
-rwxr-xr-x
pdf2ps
909
B
-rwxr-xr-x
perl
12.44
KB
-rwxr-xr-x
perl5.26.3
12.44
KB
-rwxr-xr-x
perlbug
44.39
KB
-rwxr-xr-x
perldoc
118
B
-rwxr-xr-x
perlivp
10.56
KB
-rwxr-xr-x
perlml
6.86
KB
-rwxr-xr-x
perlthanks
44.39
KB
-rwxr-xr-x
pg_config
45.4
KB
-rwxr-xr-x
pg_dump
399.43
KB
-rwxr-xr-x
pg_dumpall
107.11
KB
-rwxr-xr-x
pg_restore
173.34
KB
-rwxr-xr-x
pgrep
28.84
KB
-rwxr-xr-x
php
937
B
-rwxr-xr-x
pic
293.84
KB
-rwxr-xr-x
piconv
8.08
KB
-rwxr-xr-x
pinentry
2.35
KB
-rwxr-xr-x
pinentry-curses
77.89
KB
-rwxr-xr-x
ping
1.02
KB
-rwxr-xr-x
pinky
41.53
KB
-rwxr-xr-x
pkg-config
40.04
KB
-rwxr-xr-x
pkgconf
40.04
KB
-rwxr-xr-x
pkill
28.84
KB
-rwxr-xr-x
pl2pm
4.43
KB
-rwxr-xr-x
pmap
32.78
KB
-rwxr-xr-x
pod2html
4.04
KB
-rwxr-xr-x
pod2man
14.68
KB
-rwxr-xr-x
pod2text
10.55
KB
-rwxr-xr-x
pod2usage
3.86
KB
-rwxr-xr-x
podchecker
3.57
KB
-rwxr-xr-x
podselect
2.47
KB
-rwxr-xr-x
post-grohtml
238.73
KB
-rwxr-xr-x
pr
82.23
KB
-rwxr-xr-x
pre-grohtml
130.55
KB
-rwxr-xr-x
precat
5.52
KB
-rwxr-xr-x
preunzip
5.52
KB
-rwxr-xr-x
prezip
5.52
KB
-rwxr-xr-x
prezip-bin
11.98
KB
-rwxr-xr-x
printenv
33.4
KB
-rwxr-xr-x
printf
53.64
KB
-rwxr-xr-x
prove
13.24
KB
-rwxr-xr-x
ps
134.75
KB
-rwxr-xr-x
ps2ascii
631
B
-rwxr-xr-x
ps2epsi
2.69
KB
-rwxr-xr-x
ps2pdf
272
B
-rwxr-xr-x
ps2pdf12
215
B
-rwxr-xr-x
ps2pdf13
215
B
-rwxr-xr-x
ps2pdf14
215
B
-rwxr-xr-x
ps2pdfwr
1.07
KB
-rwxr-xr-x
ps2ps
647
B
-rwxr-xr-x
ps2ps2
669
B
-rwxr-xr-x
psql
644.33
KB
-rwxr-xr-x
ptx
78.07
KB
-rwxr-xr-x
pwd
37.5
KB
-rwxr-xr-x
pwdx
12.68
KB
-rwxr-xr-x
python2
7.84
KB
-rwxr-xr-x
python2.7
7.84
KB
-rwxr-xr-x
python3
11.59
KB
-rwxr-xr-x
python3.6
11.59
KB
-rwxr-xr-x
python3.6m
11.59
KB
-rwxr-xr-x
ranlib
61.98
KB
-rwxr-xr-x
raw
16.49
KB
-rwxr-xr-x
readelf
624.54
KB
-rwxr-xr-x
readlink
45.96
KB
-rwxr-xr-x
realpath
50.02
KB
-rwxr-xr-x
recode
47.03
KB
-rwxr-xr-x
reindexdb
70.32
KB
-rwxr-xr-x
rename
16.5
KB
-rwxr-xr-x
renew-dummy-cert
725
B
-rwxr-xr-x
renice
16.46
KB
-rwxr-xr-x
reset
24.76
KB
-rwxr-xr-x
rev
12.45
KB
-rwxr-xr-x
rm
70.47
KB
-rwxr-xr-x
rmdir
45.54
KB
-rwxr-xr-x
rnano
247.94
KB
-rwxr-xr-x
rsync
506.1
KB
-rwxr-xr-x
ruby
11.84
KB
-rwxr-xr-x
run-with-aspell
85
B
-rwxr-xr-x
runcon
37.45
KB
-rwxr-xr-x
rvi
1.13
MB
-rwxr-xr-x
rview
1.13
MB
-rwxr-xr-x
rvim
2.93
MB
-rwxr-xr-x
scalar
2.18
MB
-rwxr-xr-x
scl
36.87
KB
-rwxr-xr-x
scl_enabled
258
B
-rwxr-xr-x
scl_source
1.82
KB
-rwxr-xr-x
scp
102.84
KB
-rwxr-xr-x
screen
482.46
KB
-rwxr-xr-x
script
36.79
KB
-rwxr-xr-x
sdiff
105.33
KB
-rwxr-xr-x
sed
115.48
KB
-rwxr-xr-x
selectorctl
7.6
KB
-rwxr-xr-x
seq
53.52
KB
-rwxr-xr-x
setsid
16.38
KB
-rwxr-xr-x
setterm
45.12
KB
-rwxr-xr-x
sftp
159.73
KB
-rwxr-xr-x
sh
1.1
MB
-rwxr-xr-x
sha1sum
45.63
KB
-rwxr-xr-x
sha224sum
45.66
KB
-rwxr-xr-x
sha256sum
45.66
KB
-rwxr-xr-x
sha384sum
45.66
KB
-rwxr-xr-x
sha512sum
45.66
KB
-rwxr-xr-x
shred
61.94
KB
-rwxr-xr-x
shuf
58.16
KB
-rwxr-xr-x
size
33.25
KB
-rwxr-xr-x
skill
28.8
KB
-rwxr-xr-x
slabtop
20.84
KB
-rwxr-xr-x
sleep
37.47
KB
-rwxr-xr-x
snice
28.8
KB
-rwxr-xr-x
soelim
42.55
KB
-rwxr-xr-x
sort
123.55
KB
-rwxr-xr-x
spell
122
B
-rwxr-xr-x
splain
18.7
KB
-rwxr-xr-x
split
58.13
KB
-rwxr-xr-x
sprof
28.67
KB
-rwxr-xr-x
sqlite3
1.28
MB
-rwxr-xr-x
ssh
757.48
KB
-rwxr-xr-x
ssh-add
346.09
KB
-rwxr-xr-x
ssh-agent
325.56
KB
-rwxr-xr-x
ssh-copy-id
10.44
KB
-rwxr-xr-x
ssh-keygen
427.2
KB
-rwxr-xr-x
ssh-keyscan
428.56
KB
-rwxr-xr-x
stat
86.23
KB
-rwxr-xr-x
stdbuf
49.58
KB
-rwxr-xr-x
strace
1.97
MB
-rwxr-xr-x
stream
11.83
KB
-rwxr-xr-x
strings
37.43
KB
-rwxr-xr-x
strip
240.09
KB
-rwxr-xr-x
stty
77.68
KB
-rwxr-xr-x
sum
45.61
KB
-rwxr-xr-x
sync
37.43
KB
-rwxr-xr-x
tabs
16.55
KB
-rwxr-xr-x
tac
41.57
KB
-rwxr-xr-x
tail
74.2
KB
-rwxr-xr-x
tar
449.03
KB
-rwxr-xr-x
taskset
37.25
KB
-rwxr-xr-x
tbl
154.61
KB
-rwxr-xr-x
tclsh
9.04
KB
-rwxr-xr-x
tclsh8.6
9.04
KB
-rwxr-xr-x
tee
41.55
KB
-rwxr-xr-x
test
53.63
KB
-rwxr-xr-x
tic
85.31
KB
-rwxr-xr-x
timeout
41.93
KB
-rwxr-xr-x
tload
16.76
KB
-rwxr-xr-x
tmpwatch
35.47
KB
-rwxr-xr-x
toe
16.45
KB
-rwxr-xr-x
top
121.7
KB
-rwxr-xr-x
touch
94.02
KB
-rwxr-xr-x
tput
24.8
KB
-rwxr-xr-x
tr
49.7
KB
-rwxr-xr-x
traceroute
70.97
KB
-rwxr-xr-x
troff
805.02
KB
-rwxr-xr-x
true
33.4
KB
-rwxr-xr-x
truncate
41.44
KB
-rwxr-xr-x
tset
24.76
KB
-rwxr-xr-x
tsort
41.57
KB
-rwxr-xr-x
tty
33.39
KB
-rwxr-xr-x
tzselect
15.01
KB
-rwxr-xr-x
uapi
1.02
KB
-rwxr-xr-x
ul
20.58
KB
-rwxr-xr-x
uname
37.41
KB
-rwxr-xr-x
unexpand
45.68
KB
-rwxr-xr-x
uniq
49.72
KB
-rwxr-xr-x
unlink
33.41
KB
-rwxr-xr-x
unzip
201.98
KB
-rwxr-xr-x
unzipsfx
101.59
KB
-rwxr-xr-x
uptime
12.59
KB
-rwxr-xr-x
users
37.47
KB
-rwxr-xr-x
utmpdump
28.66
KB
-rwxr-xr-x
vacuumdb
78.46
KB
-rwxr-xr-x
vdir
139.97
KB
-rwxr-xr-x
vi
1.13
MB
-rwxr-xr-x
view
1.13
MB
-rwxr-xr-x
vim
2.93
MB
-rwxr-xr-x
vimdiff
2.93
MB
-rwxr-xr-x
vimtutor
2.07
KB
-rwxr-xr-x
vmstat
36.79
KB
-rwxr-xr-x
watch
29.19
KB
-rwxr-xr-x
wc
49.72
KB
-rwxr-xr-x
wget
521.41
KB
-rwxr-xr-x
whereis
29.27
KB
-rwxr-xr-x
which
29.44
KB
-rwxr-xr-x
who
53.68
KB
-rwxr-xr-x
whoami
33.41
KB
-rwxr-xr-x
word-list-compress
11.99
KB
-rwxr-xr-x
x86_64-redhat-linux-c++
1.21
MB
-rwxr-x---
x86_64-redhat-linux-g++
1.21
MB
-rwxr-x---
x86_64-redhat-linux-gcc
1.2
MB
-rwxr-x---
x86_64-redhat-linux-gcc-8
1.2
MB
-rwxr-x---
xargs
74.11
KB
-rwxr-xr-x
xmlcatalog
20.38
KB
-rwxr-xr-x
xmllint
73.37
KB
-rwxr-xr-x
xmlwf
32.96
KB
-rwxr-xr-x
xsltproc
28.42
KB
-rwxr-xr-x
xsubpp
4.96
KB
-rwxr-xr-x
xxd
20.52
KB
-rwxr-xr-x
yes
33.45
KB
-rwxr-xr-x
zcat
1.94
KB
-rwxr-xr-x
zcmp
1.64
KB
-rwxr-xr-x
zdiff
5.74
KB
-rwxr-xr-x
zegrep
29
B
-rwxr-xr-x
zfgrep
29
B
-rwxr-xr-x
zforce
2.03
KB
-rwxr-xr-x
zgrep
7.4
KB
-rwxr-xr-x
zip
229
KB
-rwxr-xr-x
zipcloak
102.91
KB
-rwxr-xr-x
zipgrep
2.88
KB
-rwxr-xr-x
zipinfo
201.98
KB
-rwxr-xr-x
zipnote
97.76
KB
-rwxr-xr-x
zipsplit
97.76
KB
-rwxr-xr-x
zless
2.15
KB
-rwxr-xr-x
zmore
1.8
KB
-rwxr-xr-x
znew
4.45
KB
-rwxr-xr-x
zsoelim
42.55
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tzselect
#!/usr/bin/bash PKGVERSION="(GNU libc) " TZVERSION="2.28" REPORT_BUGS_TO="<http://www.gnu.org/software/libc/bugs.html>" # Ask the user about the time zone, and output the resulting TZ value to stdout. # Interact with the user via stderr and stdin. # Contributed by Paul Eggert. This file is in the public domain. # Porting notes: # # This script requires a Posix-like shell and prefers the extension of a # 'select' statement. The 'select' statement was introduced in the # Korn shell and is available in Bash and other shell implementations. # If your host lacks both Bash and the Korn shell, you can get their # source from one of these locations: # # Bash <http://www.gnu.org/software/bash/bash.html> # Korn Shell <http://www.kornshell.com/> # Public Domain Korn Shell <http://www.cs.mun.ca/~michael/pdksh/> # # For portability to Solaris 9 /bin/sh this script avoids some POSIX # features and common extensions, such as $(...) (which works sometimes # but not others), $((...)), and $10. # # This script also uses several features of modern awk programs. # If your host lacks awk, or has an old awk that does not conform to Posix, # you can use either of the following free programs instead: # # Gawk (GNU awk) <http://www.gnu.org/software/gawk/> # mawk <http://invisible-island.net/mawk/> # Specify default values for environment variables if they are unset. : ${AWK=awk} : ${TZDIR=/usr/share/zoneinfo} # Output one argument as-is to standard output. # Safer than 'echo', which can mishandle '\' or leading '-'. say() { printf '%s\n' "$1" } # Check for awk Posix compliance. ($AWK -v x=y 'BEGIN { exit 123 }') </dev/null >/dev/null 2>&1 [ $? = 123 ] || { say >&2 "$0: Sorry, your '$AWK' program is not Posix compatible." exit 1 } coord= location_limit=10 zonetabtype=zone1970 usage="Usage: tzselect [--version] [--help] [-c COORD] [-n LIMIT] Select a time zone interactively. Options: -c COORD Instead of asking for continent and then country and then city, ask for selection from time zones whose largest cities are closest to the location with geographical coordinates COORD. COORD should use ISO 6709 notation, for example, '-c +4852+00220' for Paris (in degrees and minutes, North and East), or '-c -35-058' for Buenos Aires (in degrees, South and West). -n LIMIT Display at most LIMIT locations when -c is used (default $location_limit). --version Output version information. --help Output this help. Report bugs to $REPORT_BUGS_TO." # Ask the user to select from the function's arguments, # and assign the selected argument to the variable 'select_result'. # Exit on EOF or I/O error. Use the shell's 'select' builtin if available, # falling back on a less-nice but portable substitute otherwise. if case $BASH_VERSION in ?*) : ;; '') # '; exit' should be redundant, but Dash doesn't properly fail without it. (eval 'set --; select x; do break; done; exit') </dev/null 2>/dev/null esac then # Do this inside 'eval', as otherwise the shell might exit when parsing it # even though it is never executed. eval ' doselect() { select select_result do case $select_result in "") echo >&2 "Please enter a number in range." ;; ?*) break esac done || exit } # Work around a bug in bash 1.14.7 and earlier, where $PS3 is sent to stdout. case $BASH_VERSION in [01].*) case `echo 1 | (select x in x; do break; done) 2>/dev/null` in ?*) PS3= esac esac ' else doselect() { # Field width of the prompt numbers. select_width=`expr $# : '.*'` select_i= while : do case $select_i in '') select_i=0 for select_word do select_i=`expr $select_i + 1` printf >&2 "%${select_width}d) %s\\n" $select_i "$select_word" done ;; *[!0-9]*) echo >&2 'Please enter a number in range.' ;; *) if test 1 -le $select_i && test $select_i -le $#; then shift `expr $select_i - 1` select_result=$1 break fi echo >&2 'Please enter a number in range.' esac # Prompt and read input. printf >&2 %s "${PS3-#? }" read select_i || exit done } fi while getopts c:n:t:-: opt do case $opt$OPTARG in c*) coord=$OPTARG ;; n*) location_limit=$OPTARG ;; t*) # Undocumented option, used for developer testing. zonetabtype=$OPTARG ;; -help) exec echo "$usage" ;; -version) exec echo "tzselect $PKGVERSION$TZVERSION" ;; -*) say >&2 "$0: -$opt$OPTARG: unknown option; try '$0 --help'"; exit 1 ;; *) say >&2 "$0: try '$0 --help'"; exit 1 ;; esac done shift `expr $OPTIND - 1` case $# in 0) ;; *) say >&2 "$0: $1: unknown argument"; exit 1 ;; esac # Make sure the tables are readable. TZ_COUNTRY_TABLE=$TZDIR/iso3166.tab TZ_ZONE_TABLE=$TZDIR/$zonetabtype.tab for f in $TZ_COUNTRY_TABLE $TZ_ZONE_TABLE do <"$f" || { say >&2 "$0: time zone files are not set up correctly" exit 1 } done # If the current locale does not support UTF-8, convert data to current # locale's format if possible, as the shell aligns columns better that way. # Check the UTF-8 of U+12345 CUNEIFORM SIGN URU TIMES KI. ! $AWK 'BEGIN { u12345 = "\360\222\215\205"; exit length(u12345) != 1 }' && { tmp=`(mktemp -d) 2>/dev/null` || { tmp=${TMPDIR-/tmp}/tzselect.$$ && (umask 77 && mkdir -- "$tmp") };} && trap 'status=$?; rm -fr -- "$tmp"; exit $status' 0 HUP INT PIPE TERM && (iconv -f UTF-8 -t //TRANSLIT <"$TZ_COUNTRY_TABLE" >$tmp/iso3166.tab) \ 2>/dev/null && TZ_COUNTRY_TABLE=$tmp/iso3166.tab && iconv -f UTF-8 -t //TRANSLIT <"$TZ_ZONE_TABLE" >$tmp/$zonetabtype.tab && TZ_ZONE_TABLE=$tmp/$zonetabtype.tab newline=' ' IFS=$newline # Awk script to read a time zone table and output the same table, # with each column preceded by its distance from 'here'. output_distances=' BEGIN { FS = "\t" while (getline <TZ_COUNTRY_TABLE) if ($0 ~ /^[^#]/) country[$1] = $2 country["US"] = "US" # Otherwise the strings get too long. } function abs(x) { return x < 0 ? -x : x; } function min(x, y) { return x < y ? x : y; } function convert_coord(coord, deg, minute, ilen, sign, sec) { if (coord ~ /^[-+]?[0-9]?[0-9][0-9][0-9][0-9][0-9][0-9]([^0-9]|$)/) { degminsec = coord intdeg = degminsec < 0 ? -int(-degminsec / 10000) : int(degminsec / 10000) minsec = degminsec - intdeg * 10000 intmin = minsec < 0 ? -int(-minsec / 100) : int(minsec / 100) sec = minsec - intmin * 100 deg = (intdeg * 3600 + intmin * 60 + sec) / 3600 } else if (coord ~ /^[-+]?[0-9]?[0-9][0-9][0-9][0-9]([^0-9]|$)/) { degmin = coord intdeg = degmin < 0 ? -int(-degmin / 100) : int(degmin / 100) minute = degmin - intdeg * 100 deg = (intdeg * 60 + minute) / 60 } else deg = coord return deg * 0.017453292519943296 } function convert_latitude(coord) { match(coord, /..*[-+]/) return convert_coord(substr(coord, 1, RLENGTH - 1)) } function convert_longitude(coord) { match(coord, /..*[-+]/) return convert_coord(substr(coord, RLENGTH)) } # Great-circle distance between points with given latitude and longitude. # Inputs and output are in radians. This uses the great-circle special # case of the Vicenty formula for distances on ellipsoids. function gcdist(lat1, long1, lat2, long2, dlong, x, y, num, denom) { dlong = long2 - long1 x = cos(lat2) * sin(dlong) y = cos(lat1) * sin(lat2) - sin(lat1) * cos(lat2) * cos(dlong) num = sqrt(x * x + y * y) denom = sin(lat1) * sin(lat2) + cos(lat1) * cos(lat2) * cos(dlong) return atan2(num, denom) } # Parallel distance between points with given latitude and longitude. # This is the product of the longitude difference and the cosine # of the latitude of the point that is further from the equator. # I.e., it considers longitudes to be further apart if they are # nearer the equator. function pardist(lat1, long1, lat2, long2) { return abs(long1 - long2) * min(cos(lat1), cos(lat2)) } # The distance function is the sum of the great-circle distance and # the parallel distance. It could be weighted. function dist(lat1, long1, lat2, long2) { return gcdist(lat1, long1, lat2, long2) + pardist(lat1, long1, lat2, long2) } BEGIN { coord_lat = convert_latitude(coord) coord_long = convert_longitude(coord) } /^[^#]/ { here_lat = convert_latitude($2) here_long = convert_longitude($2) line = $1 "\t" $2 "\t" $3 sep = "\t" ncc = split($1, cc, /,/) for (i = 1; i <= ncc; i++) { line = line sep country[cc[i]] sep = ", " } if (NF == 4) line = line " - " $4 printf "%g\t%s\n", dist(coord_lat, coord_long, here_lat, here_long), line } ' # Begin the main loop. We come back here if the user wants to retry. while echo >&2 'Please identify a location' \ 'so that time zone rules can be set correctly.' continent= country= region= case $coord in ?*) continent=coord;; '') # Ask the user for continent or ocean. echo >&2 'Please select a continent, ocean, "coord", or "TZ".' quoted_continents=` $AWK ' BEGIN { FS = "\t" } /^[^#]/ { entry = substr($3, 1, index($3, "/") - 1) if (entry == "America") entry = entry "s" if (entry ~ /^(Arctic|Atlantic|Indian|Pacific)$/) entry = entry " Ocean" printf "'\''%s'\''\n", entry } ' <"$TZ_ZONE_TABLE" | sort -u | tr '\n' ' ' echo '' ` eval ' doselect '"$quoted_continents"' \ "coord - I want to use geographical coordinates." \ "TZ - I want to specify the time zone using the Posix TZ format." continent=$select_result case $continent in Americas) continent=America;; *" "*) continent=`expr "$continent" : '\''\([^ ]*\)'\''` esac ' esac case $continent in TZ) # Ask the user for a Posix TZ string. Check that it conforms. while echo >&2 'Please enter the desired value' \ 'of the TZ environment variable.' echo >&2 'For example, GST-10 is a zone named GST' \ 'that is 10 hours ahead (east) of UTC.' read TZ $AWK -v TZ="$TZ" 'BEGIN { tzname = "(<[[:alnum:]+-]{3,}>|[[:alpha:]]{3,})" time = "(2[0-4]|[0-1]?[0-9])" \ "(:[0-5][0-9](:[0-5][0-9])?)?" offset = "[-+]?" time mdate = "M([1-9]|1[0-2])\\.[1-5]\\.[0-6]" jdate = "((J[1-9]|[0-9]|J?[1-9][0-9]" \ "|J?[1-2][0-9][0-9])|J?3[0-5][0-9]|J?36[0-5])" datetime = ",(" mdate "|" jdate ")(/" time ")?" tzpattern = "^(:.*|" tzname offset "(" tzname \ "(" offset ")?(" datetime datetime ")?)?)$" if (TZ ~ tzpattern) exit 1 exit 0 }' do say >&2 "'$TZ' is not a conforming Posix time zone string." done TZ_for_date=$TZ;; *) case $continent in coord) case $coord in '') echo >&2 'Please enter coordinates' \ 'in ISO 6709 notation.' echo >&2 'For example, +4042-07403 stands for' echo >&2 '40 degrees 42 minutes north,' \ '74 degrees 3 minutes west.' read coord;; esac distance_table=`$AWK \ -v coord="$coord" \ -v TZ_COUNTRY_TABLE="$TZ_COUNTRY_TABLE" \ "$output_distances" <"$TZ_ZONE_TABLE" | sort -n | sed "${location_limit}q" ` regions=`say "$distance_table" | $AWK ' BEGIN { FS = "\t" } { print $NF } '` echo >&2 'Please select one of the following' \ 'time zone regions,' echo >&2 'listed roughly in increasing order' \ "of distance from $coord". doselect $regions region=$select_result TZ=`say "$distance_table" | $AWK -v region="$region" ' BEGIN { FS="\t" } $NF == region { print $4 } '` ;; *) # Get list of names of countries in the continent or ocean. countries=`$AWK \ -v continent="$continent" \ -v TZ_COUNTRY_TABLE="$TZ_COUNTRY_TABLE" \ ' BEGIN { FS = "\t" } /^#/ { next } $3 ~ ("^" continent "/") { ncc = split($1, cc, /,/) for (i = 1; i <= ncc; i++) if (!cc_seen[cc[i]]++) cc_list[++ccs] = cc[i] } END { while (getline <TZ_COUNTRY_TABLE) { if ($0 !~ /^#/) cc_name[$1] = $2 } for (i = 1; i <= ccs; i++) { country = cc_list[i] if (cc_name[country]) { country = cc_name[country] } print country } } ' <"$TZ_ZONE_TABLE" | sort -f` # If there's more than one country, ask the user which one. case $countries in *"$newline"*) echo >&2 'Please select a country' \ 'whose clocks agree with yours.' doselect $countries country=$select_result;; *) country=$countries esac # Get list of names of time zone rule regions in the country. regions=`$AWK \ -v country="$country" \ -v TZ_COUNTRY_TABLE="$TZ_COUNTRY_TABLE" \ ' BEGIN { FS = "\t" cc = country while (getline <TZ_COUNTRY_TABLE) { if ($0 !~ /^#/ && country == $2) { cc = $1 break } } } /^#/ { next } $1 ~ cc { print $4 } ' <"$TZ_ZONE_TABLE"` # If there's more than one region, ask the user which one. case $regions in *"$newline"*) echo >&2 'Please select one of the following' \ 'time zone regions.' doselect $regions region=$select_result;; *) region=$regions esac # Determine TZ from country and region. TZ=`$AWK \ -v country="$country" \ -v region="$region" \ -v TZ_COUNTRY_TABLE="$TZ_COUNTRY_TABLE" \ ' BEGIN { FS = "\t" cc = country while (getline <TZ_COUNTRY_TABLE) { if ($0 !~ /^#/ && country == $2) { cc = $1 break } } } /^#/ { next } $1 ~ cc && $4 == region { print $3 } ' <"$TZ_ZONE_TABLE"` esac # Make sure the corresponding zoneinfo file exists. TZ_for_date=$TZDIR/$TZ <"$TZ_for_date" || { say >&2 "$0: time zone files are not set up correctly" exit 1 } esac # Use the proposed TZ to output the current date relative to UTC. # Loop until they agree in seconds. # Give up after 8 unsuccessful tries. extra_info= for i in 1 2 3 4 5 6 7 8 do TZdate=`LANG=C TZ="$TZ_for_date" date` UTdate=`LANG=C TZ=UTC0 date` TZsec=`expr "$TZdate" : '.*:\([0-5][0-9]\)'` UTsec=`expr "$UTdate" : '.*:\([0-5][0-9]\)'` case $TZsec in $UTsec) extra_info=" Selected time is now: $TZdate. Universal Time is now: $UTdate." break esac done # Output TZ info and ask the user to confirm. echo >&2 "" echo >&2 "The following information has been given:" echo >&2 "" case $country%$region%$coord in ?*%?*%) say >&2 " $country$newline $region";; ?*%%) say >&2 " $country";; %?*%?*) say >&2 " coord $coord$newline $region";; %%?*) say >&2 " coord $coord";; *) say >&2 " TZ='$TZ'" esac say >&2 "" say >&2 "Therefore TZ='$TZ' will be used.$extra_info" say >&2 "Is the above information OK?" doselect Yes No ok=$select_result case $ok in Yes) break esac do coord= done case $SHELL in *csh) file=.login line="setenv TZ '$TZ'";; *) file=.profile line="TZ='$TZ'; export TZ" esac test -t 1 && say >&2 " You can make this change permanent for yourself by appending the line $line to the file '$file' in your home directory; then log out and log in again. Here is that TZ value again, this time on standard output so that you can use the $0 command in shell scripts:" say "$TZ"
Close