Linux Bash Commands
Quiz yourself by thinking what should be in
each of the black spaces below before clicking
on it to display the answer.
Help!
|
|
||||
---|---|---|---|---|---|
show | directory listing
🗑
|
||||
show | formatted listing with hidden files
🗑
|
||||
cd dir | show 🗑
|
||||
show | change to home
🗑
|
||||
pwd | show 🗑
|
||||
mkdir dir | show 🗑
|
||||
show | delete file
🗑
|
||||
rm -r dir | show 🗑
|
||||
rm -f file | show 🗑
|
||||
show | force remove directory dir *
🗑
|
||||
cp file1 file2 | show 🗑
|
||||
cp -r dir1 dir2 | show 🗑
|
||||
show | rename or move file1 to file2 if file2 is an existing directory, moves file1 into directory file2
🗑
|
||||
ln -s file link | show 🗑
|
||||
touch file | show 🗑
|
||||
show | places standard input into file
🗑
|
||||
more file | show 🗑
|
||||
head file | show 🗑
|
||||
tail file | show 🗑
|
||||
tail -f file | show 🗑
|
||||
ps | show 🗑
|
||||
show | display all running processes
🗑
|
||||
show | change the permissions of fileto octal, which can be found separately for user,group, and world by adding:● 4 – read (r)● 2 – write (w)● 1 – execute (x)Examples:chmod 777 – read, write, execute for allchmod 755 – rwx for owner, rx for group and world
🗑
|
||||
show | search for pattern in files
🗑
|
||||
grep -r pattern dir | show 🗑
|
||||
command | grep pattern | show 🗑
|
||||
locate file | show 🗑
|
||||
date | show 🗑
|
||||
cal | show 🗑
|
||||
uptime | show 🗑
|
||||
show | who you are logged in as
🗑
|
||||
show | show the manual for command
🗑
|
||||
show | compresses file and renames it to file.gz
🗑
|
||||
gzip -d file.gz | show 🗑
|
||||
show | repeats the last command
🗑
|
||||
exit | show 🗑
|
Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.
Normal Size Small Size show me how
Normal Size Small Size show me how
Created by:
louieb39
Popular Computers sets