You should make yourself familiar with the man and apropos commands on the shell. They will be vital to your self-tutoring.
$ man man $ man apropos
BASH also offers a help command which contains brief summaries of its built-in commands (which we'll discuss in depth later on).
$ help
$ help read
Aliasing commands
alias ls='ls -l'
$ ls # List files in the current directory (no output: no files).
$ touch a b c # Create files 'a', 'b' and 'c'.
$ rm * # Remove all files in the current directory.
You now know that the amount of whitespace between arguments does not matter
$ echo This is a test. This is a test. $ echo This is a test. This is a test.
If you want preserve the white spacing
$ echo "This is a test." This is a test.
Code:
du -h directory_name
reports the size of all directories beneath a given directory and the total at the bottom. If you just want a total for that directory, then use
Code:
du -hs directory_name
If you don't provide a directory_name, the current directory will be used.
List all hardware
$sudo lshw
You can get specific details by using the -C flag:
$sudo lshw -C disk
will list all you hard disks.
To create an html page with your hardware details
$sudo lshw -html > my-hardware-details.html
To list disk info
sudo lshw -C disk
To view processor info
cat /proc/cpuinfo
Test unity support
glxinfo | grep rendering
glxinfo is not default utility
Test support for unity
/usr/lib/nux/unity_support_test -p
1)To view the first 15 lines
dmidecode | head -15
2)Get the total number of records in the DMI table as shown below:
# dmidecode | grep ^Handle | wc -l
56
(or)
# dmidecode | grep structures
56 structures occupying 1977 bytes.
3) To get the CPU information
dmidecode -t 4
Type Information
----------------------------------------
0 BIOS
1 System
2 Base Board
3 Chassis
4 Processor
5 Memory Controller
6 Memory Module
7 Cache
8 Port Connector
9 System Slots
10 On Board Devices
11 OEM Strings
12 System Configuration Options
13 BIOS Language
14 Group Associations
15 System Event Log
16 Physical Memory Array
17 Memory Device
18 32-bit Memory Error
19 Memory Array Mapped Address
20 Memory Device Mapped Address
21 Built-in Pointing Device
22 Portable Battery
23 System Reset
24 Hardware Security
25 System Power Controls
26 Voltage Probe
27 Cooling Device
28 Temperature Probe
29 Electrical Current Probe
30 Out-of-band Remote Access
31 Boot Integrity Services
32 System Boot
33 64-bit Memory Error
34 Management Device
35 Management Device Component
36 Management Device Threshold Data
37 Memory Channel
38 IPMI Device
39 Power Supply
Keyword Types
------------------------------
bios 0, 13
system 1, 12, 15, 23, 32
baseboard 2, 10
chassis 3
processor 4
memory 5, 6, 16, 17
cache 7
connector 8
slot 9
4)How much memory can I expand to? From /proc/meminfo you can find out the total current memory of your system as shown below.
# grep MemTotal /proc/meminfo
MemTotal: 1034644 kB
5)
dmidecode -t baseboard
dmidecode -t bios
dmidecode -t system
To install Unity 2D
sudo apt-get install unity-2d
The Universe repository should already be enabled (wiki.ubuntu.com/AlwaysEnableUniverseMultiverse). If not, first enable the Universe repository.
As root/superuser, run:
apt-get install ttf-sinhala-lklug ibus im-switch ibus-m17n m17n-db m17n-contrib
language-pack-si-base
From your user account (i.e. not root) run:
rm -f ~/.xinput.d/* ; im-switch -z all_ALL -s ibus
Logout and login again. Environment variables need to be set/updated (NO NEED TO REBOOT)
From your user account (i.e. not root) select your keyboard layouts by running:
ibus-setup
OR