Skip to content
Infra X-Ray
AcademyExplore
Sign inCreate free account
Infra X-Ray

DevOps, simulated in your browser.

  • Academy
  • Explore
  • Roadmap
  • Contact
  • Privacy
  • Terms

Lesson 2 of 29

Aliases, functions and the environment

13 min

LPIC-1 Exam 102 Prep
Shell environment and scriptsFree with an account
  1. Startup files
  2. Aliases, functions and the environment
  3. Your first script
  4. Tests, loops and reporting
Users and groupsPro
  1. User accounts
  2. Groups
  3. Passwords, aging and locking
Time, scheduling, languagesPro
  1. The system clock and the hardware clock
  2. Keeping time with NTP
  3. cron
  4. at and systemd timers
  5. Languages, encodings and time zones
Logs, mail, printingPro
  1. syslog and rsyslog
  2. logrotate and the journal
  3. Mail on a Linux server
  4. Printing with CUPS
NetworkingPro
  1. Addresses and subnets
  2. TCP, UDP, ICMP and ports
  3. Persistent network configuration
  4. Troubleshooting connectivity
  5. Name resolution
  6. Practice: fix three broken networks
Security and SSHPro
  1. Auditing a system
  2. Hardening a host
  3. Logging in with SSH
  4. Agent, file copy and tunnels
  5. Encrypting and signing with GPG
Graphical desktopPro
  1. X11 and display managers
  2. Desktops, remote sessions and accessibility
Final exam
  1. Academy
  2. LPIC-1 Exam 102 Prep
  3. Shell environment and scripts

Aliases, functions and the environment

An alias is a typing shortcut, a function is a small named script inside the shell, and source runs a file in this shell instead of a child.

  • 13 minutes
  • 5 quiz questions
  • Lab: 6 steps
  • Free with an account
Loading the lesson…
Previous lessonStartup filesNext lessonYour first script

Lesson 2 of 29

Aliases, functions and the environment

13 min

LPIC-1 Exam 102 Prep
Shell environment and scriptsFree with an account
  1. Startup files
  2. Aliases, functions and the environment
  3. Your first script
  4. Tests, loops and reporting
Users and groupsPro
  1. User accounts
  2. Groups
  3. Passwords, aging and locking
Time, scheduling, languagesPro
  1. The system clock and the hardware clock
  2. Keeping time with NTP
  3. cron
  4. at and systemd timers
  5. Languages, encodings and time zones
Logs, mail, printingPro
  1. syslog and rsyslog
  2. logrotate and the journal
  3. Mail on a Linux server
  4. Printing with CUPS
NetworkingPro
  1. Addresses and subnets
  2. TCP, UDP, ICMP and ports
  3. Persistent network configuration
  4. Troubleshooting connectivity
  5. Name resolution
  6. Practice: fix three broken networks
Security and SSHPro
  1. Auditing a system
  2. Hardening a host
  3. Logging in with SSH
  4. Agent, file copy and tunnels
  5. Encrypting and signing with GPG
Graphical desktopPro
  1. X11 and display managers
  2. Desktops, remote sessions and accessibility
Final exam
  1. Academy
  2. LPIC-1 Exam 102 Prep
  3. Shell environment and scripts

Aliases, functions and the environment

An alias is a typing shortcut, a function is a small named script inside the shell, and source runs a file in this shell instead of a child.

  • 13 minutes
  • 5 quiz questions
  • Lab: 6 steps
  • Free with an account

Sign in to continue

This lesson is free with an account.

A free account saves your progress and opens every free lesson, quiz and lab. In this course that is the whole first module, Shell environment and scripts.

Create free accountSign in
Previous lessonStartup filesNext lessonYour first script