Font size
WorksheetsLinux-files-folders
Total questions: 30
Worksheet time: 15mins
Lệnh nào để tạo file ?
mkdir
touch
rm
pwd
Lệnh nào để di chuyển giữa các thư mục
mkdir
ls
cd
git init
Lệnh nào để lấy đường dẫn thư mục hiện tại ?
cd
ls
touch
rm -rf
pwd
Những đường dẫn nào là đường dẫn tuyệt đối ?
/home/dev
var/log
/usr/local/bin
../home
/
Không thể xem mã nguồn của hệ điều hành Linux vì đó là 1 sản phẩm thương mại ?
Đúng
Sai
Không biết
Cho đoạn lệnh sau:
$ pwd
/etc/udev/rules.d
$ cd ../../systemd/user
$ cd ..
$ pwd
Kết quả của đoạn lệnh pwd cuối cùng sẽ là:
/etc
/systemd
/
/etc/systemd
/root
Lệnh nào để liệt kê các file và thư mục
touch
cd
ls
show
which
Lệnh nào để tạo thư mục có tên là test:
make test
touch test
rm -rf test
mkdir test
cp test
Những option nào dưới đây là Linux distro:
Ubuntu
MS-DOS
CentOS
MacOS
Fedora
Lệnh nào để copy file index.html ra 1 file khác có tên home.html
touch index.html home.html
mv index.html home.html
cp index.html home.html
cd index.html
Lệnh nào để hiển thị các file và thư mục như trong ảnh:
ls
touch
ls -a
ls -la
list
Lệnh nào để xóa thư mục .git trong ảnh:
rm .git
touch .git
rm -rf .git
mkdir .git
mv .git
Những lệnh nào có thể dùng để di chuyển file index.js sang thư mục /Users/duy/Desktop:
cp index.js /Users/duy/Desktop/index.js
rm index.js
mv index.js /Users/duy/Desktop
touch /Users/duy/Desktop/index.js
mv index.js ../
Những lệnh nào có thể dùng để tạo một file có tên hello.txt ở thư mục /Users/duy/Desktop
touch hello.txt
touch /Users/duy/Desktop/hello.txt
mkdir /Users/duy/Desktop/hello.txt
cd /Users/duy/Desktop && touch hello.txt
touch ../hello.txt
Linux được tạo ra vào năm nào:
1990
1991
1992
1993
1994
Ai là người tạo ra Linux:
Steve Jobs
Bill Gates
Linus Torvalds
Ken Thompson
Những lệnh nào có thể dùng để xóa 2 file package.json và package-lock.json:
touch package.json package-lock.json
mkdir package.json package-lock.json
rm package.json package-lock.json
rm package.json && rm package-lock.json
Những lệnh nào có thể dùng để di chuyển sang thư mục /Users/duy:
cd /Users/duy
cd /
mv /Users/duy
cd ../
cd ../../
Những lệnh nào có thể dùng để tạo 1 file có tên node.js bên trong thư mục test:
mkdir test/node.js
cd test && touch node.js
touch node.js
touch test/node.js
touch /Users/duy/Desktop/nodejs-test/test/node.js
Những lệnh nào có thể dùng để liệt kê các file và thư mục bên trong thư mục node_modules:
ls node_modules
ls ./node_modules
show node_modules
cd node_modules && ls
ls /Users/duy/Desktop/nodejs-test/node_modules
Lệnh nào để đổi tên file hello.txt thành hi.txt
rm hello.txt hi.txt
cp hello.txt hi.txt
mv hello.txt hi.txt
pwd hello.txt
Lệnh nào để liệt kê các file và thư mục ẩn:
ls
ls -l
ls -a
rm -rf
Linux chỉ được dùng cho các dự án cá nhân, không được dùng trong môi trường doanh nghiệp:
Đúng
Sai
Không biết
Tất cả các server trên thế giới đều chạy hệ điều hành Linux:
Đúng
Sai
Không biết
Những lệnh nào có thể dùng để di chuyển về thư mục liền trước nó 2 cấp:
cd
cd ..
cd ../../
cd .. && cd ..
Lệnh nào để copy file hello.txt vào thư mục web
rm hello.txt web
cp hello.txt web/
mv hello.txt web/
touch hello.txt web
Bash là viết tắt của:
Be again shell
Break all shell
Baby shell
Bourne Again Shell
Những cái nào không phải là trình shell trên Linux:
bash
zsh
csh
dir
ms-dos
Lệnh nào để kiểm tra 1 command là internal hay external:
ls
type
pwd
cd
Lệnh cd là internal hay external:
internal
external
không rõ
