Linux Flashcards
1
Q
Default text Editor
A
Vim
2
Q
Syntax to Launch Vim
A
vi FileName
3
Q
:w
A
write
4
Q
:q
A
Quit editor
5
Q
:!
A
Exit editor
6
Q
:wq!
A
Write/save, Quit, and Exit
7
Q
yy
A
yy: copy line
p: paste line
8
Q
x
A
Delete character
9
Q
dd
A
delete line
10
Q
whoami
A
check active user name
11
Q
id
A
user id
12
Q
Root user/super user
A
The root user has no restriction and can perform ay task.
However, a root user can elevate an ordinary user by granting them sudo privileges by making an entry into SUDO /etc/sudoers file. so they can
they can now perform tasks by prefixing their commands by sudo
- Install packages
- Make configuration changes
- make network changes
- Elevate permissions
13
Q
Curl or wget
A
curl or wget.http://xhejfkldwsjnwhedasj/file -o Filename.txt
the -o flag is to specify storage location.
14
Q
ssh @user ipaddress
A
15
Q
check os version
A
/etc/release