LinuxCommandLibrary

skicka

Copy files to/from Google Storage

TLDR

Upload a file/folder to Google Drive

$ skicka upload [path/to/local] [path/to/remote]
copy

Download a file/folder from Google Drive
$ skicka download [path/to/remote] [path/to/local]
copy

List files
$ skicka ls [path/to/folder]
copy

Show amount of space used by children folders
$ skicka du [path/to/parent/folder]
copy

Create a folder
$ skicka mkdir [path/to/folder]
copy

Delete a file
$ skicka rm [path/to/file]
copy

SYNOPSIS

skicka [options] recipient

PARAMETERS

-f sender
    Sets the 'From:' address for the email.

-c cc-address
    Specifies a 'Cc:' address for carbon copying.

-b bcc-address
    Specifies a 'Bcc:' address for blind carbon copying.

-s subject
    Sets the subject of the email.

-a attachment
    Attaches the specified file to the email.

-m message
    Sends a message body from the command line, useful for short messages.

-F configfile
    Use an alternative config file.

DESCRIPTION

The skicka command is a simple utility for sending email from the command line in Linux. It's designed for basic mail sending tasks, often used in scripts or automated processes where a full-fledged mail client is not necessary. It is important to note that skicka relies on a configured mail transfer agent (MTA) such as Sendmail or Postfix to handle the actual delivery of the email.

skicka is usually configured with a small configuration file which allows it to send email with various settings set as defaults. The program can send attachments, which will be MIME encoded with the correct headers.

While straightforward to use, skicka lacks advanced features found in more robust mail clients. It's essential to ensure that your system's MTA is properly configured before using skicka to send emails. It is a very useful and easy-to-use program for sending mail from the command line.

CAVEATS

Requires a properly configured MTA (e.g., Sendmail, Postfix) on the system. Error messages may be cryptic without detailed MTA logs. Lacks advanced features like encryption or DKIM signing.

SECURITY CONSIDERATIONS

When using skicka in scripts, be cautious about exposing sensitive information such as email credentials or API keys. Avoid hardcoding such details directly in the script. Consider using environment variables or dedicated configuration files with restricted permissions.

CONFIGURATION FILE

The configuration file stores default settings for the program. This can include the default sending addresses and SMTP server information. See the manual pages for configuration file details.

SEE ALSO

mail(1), sendmail(8), postfix(1)

Copied to clipboard