salloc(1) --account=<your account> --cpus-per-task=2 --mem=10G
Obtain a SLURM job allocation (a set of nodes), execute a command, and then release the allocation when the command is finished
-A, --account=<account>
       Charge  resources  used by this job to specified account.  The account is an arbitrary string. The
       account name may be changed after job submission using the scontrol command.
Before a command is executed, its input and output may be redirected using a special notation interpreted
by  the  shell.   Redirection  may  also  be used to open and close files for the current shell execution
environment.  The following redirection operators may precede or appear anywhere within a simple  command
or may follow a command.  Redirections are processed in the order they appear, from left to right.

Redirecting Input
    Redirection  of  input  causes  the  file  whose name results from the expansion of word to be opened for
    reading on file descriptor n, or the standard input (file descriptor 0) if n is not specified.

    The general format for redirecting input is:

           [n]<word
Before a command is executed, its input and output may be redirected using a special notation interpreted
by  the  shell.   Redirection  may  also  be used to open and close files for the current shell execution
environment.  The following redirection operators may precede or appear anywhere within a simple  command
or may follow a command.  Redirections are processed in the order they appear, from left to right.

Redirecting Output
    Redirection of output causes the file whose name results from the expansion of  word  to  be  opened  for
    writing  on  file descriptor n, or the standard output (file descriptor 1) if n is not specified.  If the
    file does not exist it is created; if it does exist it is truncated to zero size.

    The general format for redirecting output is:

           [n]>word

    If the redirection operator is >, and the noclobber option to the  set  builtin  has  been  enabled,  the
    redirection  will  fail if the file whose name results from the expansion of word exists and is a regular
    file.  If the redirection operator is >|, or the redirection operator is > and the  noclobber  option  to
    the  set  builtin  command  is  not  enabled, the redirection is attempted even if the file named by word
    exists.
--mem=<MB>
       Specify  the  real  memory required per node in MegaBytes.  Default value is DefMemPerNode and the
       maximum value is MaxMemPerNode. If configured, both of parameters can be seen using  the  scontrol
       show  config command.  This parameter would generally be used if whole nodes are allocated to jobs
       (SelectType=select/linear).   Also  see  --mem-per-cpu.   --mem  and  --mem-per-cpu  are  mutually
       exclusive.
source manpages: salloc