Results 1 to 5 of 5

Thread: bash - kde - how to zip file

  1. #1

    Default bash - kde - how to zip file

    Without looking through pages of source code, can someone give me the bash commands to zip a folder with structure, but not creating a double layer zip file?
    KDE can do this. How does it work?



    Code:
    tar -caf "/var/log/VirusVault/VirusFound_${Current_Date}.tar.gz" -C "/var/log/VirusVault" "VirusFound_${Current_Date}" --remove-files
    This creates a single level compressed. I need it to keep this structure.

    click on the folder, top level: VirusFound

    Code:
    # ls -R VirusFound
    VirusFound:
    linux_Y2021.M05.D02.H09.M28.S14.1620016094  linux_Y2021.M06.D15.H09.M24.S57.1623817497  linux_Y2022.M01.D30.H11.M17.S25.1643613445  mswin_Y2021.M04.D27.H01.M06.S06.1619510766
    
    VirusFound/linux_Y2021.M05.D02.H09.M28.S14.1620016094:
    ResHacker.exe  scanresults.log
    
    VirusFound/linux_Y2021.M06.D15.H09.M24.S57.1623817497:
    scanresults.log
    
    VirusFound/linux_Y2022.M01.D30.H11.M17.S25.1643613445:
    pip-20.2.3-py2.py3-none-any.whl  scanresults.log  t32.exe  t64.exe  w32.exe  w64.exe
    
    VirusFound/mswin_Y2021.M04.D27.H01.M06.S06.1619510766:
    MSOSYNC.EXE  ONENOTEM.EXE  scanresults.log

  2. #2
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    5,127

    Cool Re: bash - kde - how to zip file

    Quote Originally Posted by lord_valarian View Post
    KDE can do this.
    Believe it or not, the KDE archiving tool – Ark – can be run from the command line.
    • And, it even has a man page – as well as the “ark --help” CLI …

  3. #3

    Default Re: bash - kde - how to zip file

    Quote Originally Posted by dcurtisfra View Post
    Believe it or not, the KDE archiving tool – Ark – can be run from the command line.
    • And, it even has a man page – as well as the “ark --help” CLI …
    'scanvirus' is designed to have only 2 dependencies.

    This 'ark' can be used across linux destros? It can't be KDE specific. In that case, I need the bash command that will emulate it.

  4. #4

    Default Re: bash - kde - how to zip file

    Quote Originally Posted by lord_valarian View Post

    This 'ark' can be used across linux destros?
    Have a look yourself how many distributions provide ark:
    https://pkgs.org/search/?q=ark

  5. #5

    Default Re: bash - kde - how to zip file

    Quote Originally Posted by hui View Post
    Have a look yourself how many distributions provide ark:
    https://pkgs.org/search/?q=ark
    Thanks, scanvirus is meant not to have any GUI. This will do fine for scanvirus-gui.

    Code:
    ark -f Ginnys_House
    How do I get it to fill in the destination filename in the GUI? For that matter, use the command without using the GUI (directly to the command line)

    Thanks.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •