Beginner's Guide to the Bash Terminal

Published: 02 March 2017
on channel: Joe Collins
2,340,288
54k

This video is a crash course to help new users get started with BASH. Here is a list of the commands we'll cover:

BEGINNER'S GUIDE TO THE BASH TERMINAL

NAVIGATION

ls - list directory contents
pwd - print name of current/working directory
cd - change working directory
pushd/popd - put working directory on a stack
file - determine file type
locate - find files by name
updatedb - update database for locate
which - locate a command
history - display bash command history

GETTING HELP

whatis - display the on-line manual descriptions
apropos - search the manual page names and descriptions
man - an interface to the on-line reference manuals

WORKING WITH FILES

mkdir - create a directory/make directories
touch - change file timestamps/create empty files
cp - copy files and directories
mv - move (rename) files
rm - remove files or directories
rmdir - remove empty directories

TEXT FILES

cat - concatenate files and print on the standard output
more/less - file perusal filter for crt viewing
nano - command line text editor

USERS

sudo - execute a command as superuser
su - change user ID or become another user
users - print the user names of users currently logged in
id - print real and effective user and group IDs

CHANGING FILE PERMISSIONS

chmod - change permissions of a file

KILLING PROGRAMS AND LOGGING OUT

Ctrl+C - kill a running command
killall - kill processes by name
exit - log out of bash

USEFUL SHORTCUTS

Ctrl+D - signal bash that there is no more input
Ctrl+L - redraw the screen
Ctrl++ - make text bigger in terminal emulator
Ctrl+- - make text smaller in terminal emulator


Watch video Beginner's Guide to the Bash Terminal online without registration, duration hours minute second in high quality. This video was added by user Joe Collins 02 March 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,340,288 once and liked it 54 thousand people.