-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathUbuntu-server-file-structure
executable file
·80 lines (57 loc) · 1.5 KB
/
Ubuntu-server-file-structure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#UBUNTU SERVER DIRECTORY/FILE STRUCTURE - UPDATED 2022 - APRIL
#
#A list of useful directories and files for managing Linux/Ubuntu server
#Especially handy for beginners to Linux and server management
#Hostname file
/etc/hostname
#Hosts file - For DNS Lookup
/etc/hosts
#Internal DNS Resolver config file
/etc/resolv.conf
#SSH Config files
/etc/ssh/sshd_config
#Website storage files.
/var/www/html/
#Nginx main config file (doesn't need to be edited usually).
/etc/nginx/nginx.conf
#Add per site config files.
/etc/nginx/sites-available/
#Create a symlink here from sites-available (nginx server)
/etc/nginx/sites-enabled/
#Site Nginx config files (CentOS/Fedora/RedHat systems)
/etc/nginx/conf.d/
#Apache 2 Config files
/etc/apache2
#Linux kernel and networking settings file
/etc/sysctl.conf
#cloudflared tunnel service config file
/etc/cloudflared/config.yml
#System wide log files
/var/log/
#Nginx log files
/var/log/nginx
/var/log/nginx/error.log
/var/log/nginx/access.log
#Firewall log files
/var/log/ufw.log
#PostGreSQL storage files
/var/lib/postgresql
/var/lib/postgresql/14/main
#PostGreSQL Config files
/etc/postgresql/
/etc/postgresql/14/main
#Main PostgreSQL server config file
/etc/postgresql/14/main/postgresql.conf
#PostGreSQL client connection permissions config
/etc/postgresql/14/main/pg_hba.conf
#APT Package manager sources.
/etc/apt/sources.list.d
#Sudo permissions
/etc/sudoers.d/
/etc/sudoers
#Cron jobs
etc/cron.d
/etc/cron.daily
/etc/cron.hourly
/etc/cron.monthly
/etc/cron.weekly