Linux Scanner

• 1 min to read •

Linux Scanner can be used for performing 3 types of pre-configured tasks (Inventory Scan, Patch Scan, Patch Deploy), viewing task results, and running complex administrative tasks via customized commands. 

A Linux command is a utility that runs on the command-line interface, a console that interacts with the system via texts and processes. Tasks that require multiple steps on the GUI can be done in a matter of seconds by entering commands into the console. These may be either basic tasks such as creating a file, deleting a file, moving a file, and more, or advanced tasks such as package installation, user management, networking tasks, security tasks, and many more.

Important Information

'Download Relay' option allows extracting the results of the latest completed task or command.

This option is only available for Linux and Mac operating systems.

Prerequisites 

An online device

An account that has the 'Endpoint Management' permissions

Discovery: Linux Scanner Actions

 

Inventory

Gets a complete description of the system from different hardware and

software aspects.

Patch Scan Scans the device for potentially required updates.
Patch Deploy Scans for the specified patch and deploys it.
Custom Command 

Allows running any command available on your system.

Linux commands are executed on Terminal by pressing .

You can run commands to perform various tasks, from package installation to user management and file manipulation.

Commands in Linux are case-sensitive.

Custom commands work in a non-intaractive mode. In case of user interaction neccessity for command execution, special parameters should be added to avoid errors or execution fail. See the examples below.

Examples of the most commonly used commands:

  • Create a file

touch data.txt

  • Create a file (if does not exist) and write to it

echo 'This is a test' > data.txt

  • Create a file (if does not exist) and append to it

echo 'yet another line' >> data.txt

  • View file content

cat data.txt

more data.txt

less data.txt

  • Remove file

rm -f foo.bar

 The use of -f parameter here is important to avoid interaction, as then command execution will fail or hang.

  • Move file

mv -f data.txt ~

 The use of -f parameter here is important to avoid interaction, as then command execution will fail or hang.

But be careful, as you can overwrite files that have the same name in the destination directory. The use of -n parameter is more recommended in such case.

  • Copy file

cp -f data.txt ~

 The use of -f parameter here is important to avoid interaction, as then command execution will fail or hang.

But be careful, as you can overwrite files that have the same name in the destination directory. The use of -n parameter is more recommended in such case.

  • List files in the current directory

ls

  • List files in the specific directory

ls /path/to/directory

 

 

Last Update: Mar 12, 2024

Copyright ©2024 by Syxsense, Inc. All Rights Reserved