-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·95 lines (80 loc) · 2.79 KB
/
setup.sh
File metadata and controls
executable file
·95 lines (80 loc) · 2.79 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
# AIX Lab Simulation - Quick Setup Script
# This script helps you get started with the AIX simulation environment
echo "================================================="
echo "🚀 AIX Lab Simulation - Quick Setup"
echo "================================================="
echo
# Check if we're in the right directory
if [[ ! -f "aix_simulation.sh" ]]; then
echo "❌ Error: aix_simulation.sh not found in current directory"
echo "Please run this script from the AIX-Lab-Simulation directory"
exit 1
fi
echo "✅ Found aix_simulation.sh"
# Make simulation script executable
echo "🔧 Making simulation script executable..."
chmod +x aix_simulation.sh
echo "✅ Execute permissions set"
echo
echo "================================================="
echo "🎯 Getting Started"
echo "================================================="
echo
echo "1. To start the AIX simulation, run:"
echo " source ./aix_simulation.sh"
echo
echo "2. Try these example commands:"
echo " oslevel -r # Check AIX version"
echo " lspv # List physical volumes"
echo " lsvg -l rootvg # List logical volumes"
echo " df -g # File system usage"
echo " topas # Performance monitor"
echo " ps -ef # List processes"
echo
echo "3. For comprehensive command reference, check:"
echo " cat aix_cheatsheet.txt"
echo
echo "================================================="
echo "🚀 Auto-Starting Simulation..."
echo "================================================="
echo
# Source the simulation automatically
source ./aix_simulation.sh
echo
echo "================================================="
echo "🎓 Quick Demo - Try these commands now:"
echo "================================================="
echo
# Run some demo commands
echo "🔍 Checking AIX version:"
echo "Command: oslevel -r"
oslevel -r
echo
echo "🔍 Listing physical volumes:"
echo "Command: lspv"
lspv
echo
echo "🔍 Checking file system usage:"
echo "Command: df -g"
df -g
echo
echo "================================================="
echo "✅ Setup Complete!"
echo "================================================="
echo
echo "📚 Next steps:"
echo "• Run 'cat README.md' for detailed documentation"
echo "• Run 'cat aix_cheatsheet.txt' for command reference"
echo "• Practice with different AIX commands"
echo "• Try 'lsvg -l rootvg' to see logical volumes"
echo "• Use 'topas' for performance monitoring"
echo
echo "🎯 Remember: This is a learning simulation - commands produce"
echo " realistic AIX output but don't affect your actual system!"
echo
echo "🔒 IMPORTANT: Linux commands are disabled in this simulation!"
echo " This ensures you learn proper AIX commands, not Linux ones."
echo " Example: Use 'topas' not 'top', 'lspv' not 'fdisk'"
echo
echo "Happy learning! 🚀"