Home
Browse
Create
Search
Log in
Sign up
Upgrade to remove ads
Only $2.99/month
Linux Pro (Testout) 0.1.2
STUDY
Flashcards
Learn
Write
Spell
Test
PLAY
Match
Gravity
Linux vocabulary for all chapters shall be cover in these flashcards
Terms in this set (26)
Directory
Container that holds Linux Files
pwd
Print work directory: display the current working directory
ex: If a user named Fred is currently in his home directory and types pwd at the shell prompt, /home/Fred is display.
cd
Change Directory: Changes the present working directory.
-cd .. changes to the parent directory
-cd ../.. to changes two levels up in the directory.
-cd / changes to the root directory
ex:
-cd directory1 changes to a directory named directory1 within the working directory
-cd /home/Fred/directory1 switches to directory1 in Fred's home directory, regardless of the current working directory.
ls
List command: Displays the contents of a directory. Options include:
-a displays all directory contents, including hidden content.
-l displays extended information, including the owner, modified date, size, and permissions.
-R displays the contents of a directory and all of its subdirectories.
-d displays directories but not files.
-r reverses the sort order
ex: ls -al displays a long listing of contents in the current working directory, including hidden content.
ls -d displays only the directories within the current directory.
ls -R /etc displays the contents of the /etc directory and all of its subdirectories.
mkdir
Creates a new directory. Use the -p option to create all directories within the specified path that do not already exist.
Ex:
mkdir work_flies creates a directory named work_files in the current directory
mkdir /home/Fred/work_flies creates a directory named work_flies within the specified path.
The following commands describe the basic commands you use to manage a linux directory. . . Create, Copy, and Move a Linux Directory
cp
Copies directories. Copying leaves the source contents (directories and flies) intact. Use the -r or -R option to recursively copy subdirectories and flies and flies within the directory.
Ex:
cp -r /temp/home/user copies the entire /temp directory (within all of its files, subdirectories, and flies in the subdirectories) to the /home/user directory.
The following commands describe the basic commands you use to manage a linux directory. . . Create, Copy, and Move a Linux Directory
mv
Moves or renames files and directories (and flies). Moving directories removes the source directory and places it in the destination. Options include:
1. -f overwrites a directory that already exist in the destination directory without prompting.
2. -i prompts before overwriting a directory in the destination directory.
3. -n never overwrites flies in the destination directory.
Ex:
mv /temp/station ~/doc/ move station from the /temp directory to the ~/doc directory.
mv /current /previous renames the directory current to previous.
The following commands describe the basic commands you use to manage a linux directory. . . Create, Copy, and Move a Linux Directory
rmdir
Deletes an empty directory
rm
Removes the directory and file
touch
...
cp
...
mv
...
rm
...
vi
...
vi [file_name]
...
Insert key i, s
...
ESC key
...
Delete key
...
Insert Key
...
z
...
:
...
w
...
w [file_name]
...
w! [file_name]
...
q
...
wq or exist
...
THIS SET IS OFTEN IN FOLDERS WITH...
LabSim Linux+ 7.3
15 terms
Linux Commands
31 terms
Linux ch. 5
56 terms
LabSim Linux 9.3
15 terms
YOU MIGHT ALSO LIKE...
Linux Chapter 6
25 terms
chapter 6
22 terms
linux chp2
38 terms
Study guide for Linux
79 terms
OTHER SETS BY THIS CREATOR
TestOut Linux Pro 1.1
3 terms
Mango: Korean Grammar 2-10
2 terms
Mango: Korean Grammar 1
3 terms
Mango: Korean Vocabulary 2-10
11 terms