WebShell Manager
Linux Stag-Enterprise-Staging-20-04 5.11.0-1019-aws #20~20.04.1-Ubuntu SMP Tue Sep 21 10:40:39 UTC 2021 x86_64
Apache
Server: 172.31.9.152
Your IP: 216.73.216.236
System Info
HOME
home
ubuntu
Command Execution
Execute
File Upload
Upload
New Folder
New File
Name
Type
Size
Permissions
Modified
Actions
..
Parent
-
drwxr-xr-x
2021-08-09 14:58:49
-
.cache
Folder
-
0700
2021-08-09 18:01:43
.config
Folder
-
0775
2021-09-27 16:29:57
.local
Folder
-
0775
2021-08-09 16:00:28
.ssh
Folder
-
0700
2024-07-11 20:28:22
.vscode-server
Folder
-
0775
2022-06-13 20:18:52
.wp-cli
Folder
-
0775
2021-08-09 19:26:49
Sites
Folder
-
0755
2021-08-09 18:26:28
atd
Folder
-
0775
2024-05-14 18:50:41
atd_cfn
Folder
-
0755
2021-08-09 15:02:08
.bash_aliases
File
3.08 KB
0664
2024-07-02 14:14:12
.bash_history
File
15.5 KB
0600
2026-07-30 14:25:03
.bash_logout
File
220 B
0644
2020-02-25 12:03:22
.bashrc
File
5.18 KB
0644
2025-02-12 16:43:07
.bashrc.bak
File
3.68 KB
0644
2020-02-25 12:03:22
.gitattributes
File
1.69 KB
0644
2021-08-09 15:01:04
.gitconfig
File
1.34 KB
0644
2021-08-09 16:06:26
.mysql_history
File
205 B
0600
2021-08-11 18:23:12
.profile
File
807 B
0644
2020-02-25 12:03:22
.screenrc
File
196 B
0644
2021-08-09 15:01:04
.sudo_as_admin_successful
File
0 B
0644
2021-08-09 15:04:11
.viminfo
File
21.42 KB
0600
2025-12-04 20:33:23
.vimrc
File
236 B
0644
2021-08-09 15:01:04
.wget-hsts
File
268 B
0664
2022-06-13 16:07:09
swap_setup.sh
File
1.22 KB
0755
2021-08-09 15:01:04
system_update.sh
File
928 B
0755
2021-08-09 15:01:04
0
items selected
Choose Action...
Delete Selected
Zip Selected
Unzip Selected
Execute Action
Clear Selection
© Ultimate WebShell | Auto Bypass Enabled
Create New Folder
Create New File
Edit File: swap_setup.sh
#!/bin/bash # MUST be run as root if [ "$(whoami)" != "root" ]; then echo "This script MUST be run as root. Goodbye!" exit 1 fi # older convention putting swapfile on app volume, better for GP2 EBS volumes where IOPS are tied to size #swap_file="/mnt/Sites/swapfile" # newer convetion putting swapfile on root volume, better for GP3 where base iops is 3k; leaves IOPS on app vol for application swap_file="/swapfile" swap_size='1G' swappiness=10 fallocate -l "$swap_size" "$swap_file" chmod 600 "$swap_file" mkswap "$swap_file" swapon "$swap_file" sysctl "vm.swappiness=${swappiness}" #make sure swap is in '/etc/fstab' to presist through reboots if grep -iq "$swap_file" /etc/fstab; then echo "Detected /etc/fstab alread contains '${swap_file}'" else echo "Adding '${swap_file}' /etc/fstab" echo "${swap_file} none swap sw 0 0">>/etc/fstab fi #make swappiness persist through reboots by editing '/etc/sysctl.conf' with below if grep -iq "vm.swappiness=${swappiness}" /etc/sysctl.conf; then echo "Detected /etc/sysctl.conf alread contains 'vm.swappiness=${swappiness}'" else echo "Adding 'vm.swappiness=${swappiness}' /etc/sysctl.conf" echo "vm.swappiness=${swappiness}">>/etc/sysctl.conf fi
Rename
Change Permissions
Common permissions: 755 (rwxr-xr-x), 644 (rw-r--r--), 777 (rwxrwxrwx)
System Information
Uname: Linux Stag-Enterprise-Staging-20-04 5.11.0-1019-aws #20~20.04.1-Ubuntu SMP Tue Sep 21 10:40:39 UTC 2021 x86_64 Software: Apache PHP Version: 7.4.3-4ubuntu2.29 Protocol: HTTP/1.1 Server IP: 172.31.9.152 Your IP: 216.73.216.236 Mail: ON Curl: ON Owner: www-data MySQL: ON Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Auto Bypass: ENABLED