Register to get access to 15+ free programming courses with interactive exercises

Making custom commands with aliases Basics of Bash

Video may be blocked due to browser extensions. In the article you will find a solution to this problem.

Lesson notes

  • alias to view all aliases
  • alias name='command' to create a new alias named name for the command command (e.g. alias lss='ls | sort -r')
  • unalias name to unalias an alias named name

Some useful aliases

  • alias c='clear' — clears the screen with c
  • alias ..='cd ..' - quickly go one level up with ..
  • alias h='history' — quickly access history with h

Аватары экспертов Хекслета

Are there any more questions? Ask them in the Discussion section.

The Hexlet support team or other students will answer you.

Mistakes, difficulties, questions >
Found a typo or misspelling?

Select a text you want to report, press ctrl + enter and describe the problem, then send it to us. We'll get it fixed in a few days.

Stuck with exercise or subject seems difficult?

Take a look at Q&A section:

  • ask a question. You will cope with difficulties quicker and develop the skill of asking, which will come in handy in your studies and work as a programmer;
  • tell us about your experiences. If the course is too difficult, a detailed review will help us make it better;
  • Study other students' discussions. It’s a knowledge base you can and should use;

Об обучении на Хекслете

Sign up

Programming courses for beginners and experienced developers. Start training for free.

  • 130 courses, 2000+ hours of theory
  • 900 practical tasks in a browser
  • 360 000 students
By sending the form, you agree to Personal Policy and Service Conditions

Our graduates work in companies:

Alfa Bank logo
Aviasales logo
Yandex logo
Tinkoff logo

Используйте Хекслет по максимуму!

  • Задавайте вопросы по уроку
  • Проверяйте знания в квизах
  • Проходите практику прямо в браузере
  • Отслеживайте свой прогресс

Sign up or sign in

By sending the form, you agree to Personal Policy and Service Conditions