Convert UTF-16 encoded file to UTF-8
Answer:
iconv is what you need and is available on most Linux platforms.
# iconv -f UTF-16 -t UTF-8 text.txt
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Convert UTF-16 encoded file to UTF-8
Answer:
iconv is what you need and is available on most Linux platforms.
# iconv -f UTF-16 -t UTF-8 text.txt
Display a calendar in Linux
Answer:
Try the cal command.
# cal
January 2010
Su Mo Tu We Th Fr Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
How to create a command shortcut
Answer:
Sometimes, it is useful to set a command shortbut, by using the alias command
E.g.
# alias hello='echo world'
# hello
world
How to set a shell variable
Answer:
Use the export command
# export foo=bar
# echo $foo
bar
Display current login user information
Answer:
To check your Linux username, use whoami
$ whoami
john
To see your User ID (UID), Group ID (GID) and who groups you belong to, use the command id
$ id
uid=1000(john) gid=100(users) groups=33(www-data),100(users)