IoT (KME-553) - Ex-1
IoT (KME-553) - Ex-1
OBJECTIVE
Start Raspberry Pi and try various Linux commands in the command terminal window: ls, cd,
touch, mv, rm, man, mkdir, rmdir, tar, gzip, cat, more, less, ps, sudo, cron, chown, chgrp, ping etc.
SOFTWARE/COMPONENTS USED
PC with Raspberry software
6. MAN- man command is used to display the user manual of any command that we can
run on the terminal on Linux. Syntax - $ man [command name] Example:
9. TAR - The tar command stands for tape archive, is used to create archive and extract
the archived files.
Syntax - tar [options] [archive-file] [file or directory to be archived]
15.SUDO- sudo (super user do) command in linux is used as a prefix to some commands
that only superuser are allowed to run. This is equivalent to ‘run as administrator’
option in windows.
16.CRON - cron is a software utility offered by linux like operating systems that automates
the scheduled task at a predetermined time.
Sample commands-
00 09-18 ***home/folder/gfg-code.sh
Run/home/folder/gfg-code.sh every hour from 9:00 AM to 6:00 PM every day.
18.CHGRP - chgrp command is used to change the group ownership of a file or directory.
All files in linux belong to an owner or group.
Syntax - sudo chgrp [group name] [file name]
Example: sudo chgrp javatpoint Demo1.txt
19.PING - The ping command is a Command Prompt command used to test the ability of
the source computer to reach a specified destination computer. It's a simple way to
verify that a computer can communicate with another computer or network device.