15 Free YouTube subscribers for your channel
Get Free YouTube Subscribers, Views and Likes

Beginner's Guide to the Bash Terminal

Follow
Joe Collins

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 online manual descriptions
apropos search the manual page names and descriptions
man an interface to the online 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


Check out http://www.ezeelinux.com for more about Linux.

posted by Pfoestlux