/l3/users/slm/2018-12-minsk-aws/student02.BigClassRoom/user :1 |
|
$ssh 172.20.13.183
inet 172.20.13.183/25 brd 172.20.13.255 scope global dynamic enp3s0 valid_lft 690907sec preferred_lft 690907sec inet6 fe80::3285:a9ff:fe9e:10aa/64 scope link valid_lft forever preferred_lft forever [user@instructor:~]$ [user@instructor:~]$ [user@instructor:~]$ [user@instructor:~]$ l bash: l: command not found [user@instructor:~]$ scpu bash: scpu: command not found |
$free
total used free shared buff/cache available Mem: 8143996 675336 6838416 145808 630244 7088092 Swap: 8351740 0 8351740 |
$su
![]() Password: su: Authentication failure |
$:/home/user# vi /etc/sudoers
![]() bash: :/home/user#: No such file or directory |
$vim
![]() i |
$~
![]() bash: :/home/user#vim: No such file or directory |
$su
# User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) ALL user ALL=(ALL:ALL) ALL # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d root@m2:/home/user# exit |
$sudo dmidecode
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. [sudo] password for user: # dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.5 present. 46 structures occupying 1824 bytes. ... OEM-specific Type Header and Data: 8B 36 2C 00 07 10 22 01 00 00 00 20 04 04 32 55 F8 00 A2 02 A1 00 40 63 43 10 EB 82 03 DF 40 B2 00 20 00 73 3C 10 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 Strings: V1394GUID Handle 0x002D, DMI type 127, 4 bytes End Of Table |
$vi ~/.bashrc
|
$. /etc/bash_completion
|
$sudo dmidecode
# dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.5 present. 46 structures occupying 1824 bytes. Table at 0x000F06D0. Handle 0x0000, DMI type 0, 24 bytes BIOS Information Vendor: American Megatrends Inc. Version: 0405 Release Date: 11/22/2010 ... OEM-specific Type Header and Data: 8B 36 2C 00 07 10 22 01 00 00 00 20 04 04 32 55 F8 00 A2 02 A1 00 40 63 43 10 EB 82 03 DF 40 B2 00 20 00 73 3C 10 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 Strings: V1394GUID Handle 0x002D, DMI type 127, 4 bytes End Of Table |
$sudo apt-get install hdpar
![]() Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package hdpar |
$sudo apt-get install hdparm
Reading package lists... Done Building dependency tree Reading state information... Done hdparm is already the newest version (9.51+ds-1+deb9u1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
$cat /proc/patitios
![]() cat: /proc/patitios: No such file or directory |
$cat /proc/patitions
![]() cat: /proc/patitions: No such file or directory |
$cat /proc/partitions
major minor #blocks name 11 0 1048575 sr0 8 0 244198584 sda 8 1 235844608 sda1 8 2 1 sda2 8 5 8351744 sda5 |
$df -h
Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 796M 18M 779M 3% /run /dev/sda1 221G 4.2G 205G 2% / tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup tmpfs 796M 16K 796M 1% /run/user/117 tmpfs 796M 40K 796M 1% /run/user/1001 |
$hdparm -tT /dev/sda
![]() bash: hdparm: command not found |
$sudo hdparm -tT /dev/sda
/dev/sda: Timing cached reads: 3534 MB in 2.00 seconds = 1767.92 MB/sec Timing buffered disk reads: 272 MB in 3.02 seconds = 90.04 MB/sec |
$sudo apt-get install curl
[sudo] password for user: Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libcurl3 The following NEW packages will be installed: curl libcurl3 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 519 kB of archives. ... (Reading database ... 135979 files and directories currently installed.) Preparing to unpack .../libcurl3_7.52.1-5+deb9u8_amd64.deb ... Unpacking libcurl3:amd64 (7.52.1-5+deb9u8) ... Selecting previously unselected package curl. Preparing to unpack .../curl_7.52.1-5+deb9u8_amd64.deb ... Unpacking curl (7.52.1-5+deb9u8) ... Setting up libcurl3:amd64 (7.52.1-5+deb9u8) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up curl (7.52.1-5+deb9u8) ... |
$curl cheat.sh/ls
# Displays everything in the target directory ls path/to/the/target/directory # Displays everything including hidden files ls -a # Displays all files, along with the size (with unit suffixes) and timestamp ls -lh # Display files, sorted by size ls -S # Display directories only ls -d */ # Display directories only, include hidden ls -d .*/ */ |