Download presentation
Presentation is loading. Please wait.
Published byTimothy Rudolph Hood Modified over 9 years ago
1
EMT 2390L Lecture 3 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts
2
Outline Wildcards Commands Aliases
3
Wildcards Wildcards - allows you to select filenames based on patterns of characters.
4
Character Classes
5
Wildcards examples
6
mkdir Command mkdir – creates a directory o mkdir dir_name o mkdir dir1, dir2, …, dirN
7
cp Command cp – copies a file or directory
8
cp examples
9
mv Command mv - performs file moving or file renaming
10
mv Examples
11
rm Command rm - used to remove files and directories
12
rm Examples
13
ln Command ln - used to create either hard or symbolic links o Hard Links - ln file link o Symbolic Link - ln -s item link Hard Links - The original Unix way of creating links. It cannot reference a file outside its own filesystem and cannot reference a directory. Symbolic Links - creates a special file with a pointer to the referenced file or directory, similar to a shortcut in Windows.
14
More commands type – given a command name it will display the command the shell will execute o type cd which – to find the location of a particular executable o which cd help – display information about a command o help cd man – displays the manual of a command o man cd apropos – displays appropriate commands o apropos cd
15
More Commands whatis - displays the name and a one-line description of a man page matching a specified keyword o whatis bash info – an alternative to man pages o info cd alias – to create your own composite commands o Usage: alias name=‘command1; command2; … ; commandN' o e.g. alias foo='cd /usr; ls; cd -‘
16
Assignments Check the class OpenLab site for new Labs Check Blackboard for new Quizzes
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.