Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

tar-delete

tar -f file.tar --delete dir1/*
Comment

tar delete

## Use --remove-files NOT --delete to erase the source files
tar -cf tarball-name.tar /path/to/save --remove-files
## Usee && to only process rmdir if tar exits without errors
tar -cf tarball-name.tar /path/to/save --remove-files && rmdir /path/to/save
Comment

PREVIOUS NEXT
Code Example
Shell :: set up jdk and maven on wsl 
Shell :: ffmpeg green screen 
Shell :: pytest debug tests 
Shell :: git unstage a file 
Shell :: 20.04 
Shell :: gsed comand store file 
Shell :: merge branch into master 
Shell :: create a bash script 
Shell :: powershell show first few lines of command 
Shell :: How to remove all local branches which are merged or not on remote branches 
Shell :: shallow clone specific branch 
Shell :: sed output to file 
Shell :: git go back to head after checkout commit 
Shell :: cli echo to file 
Shell :: xargs example with curl 
Shell :: download atom for ubuntu 18.04 
Shell :: docker db instance workbench connection 
Shell :: open current directory in terminal 
Shell :: keycloak docker disable https 
Shell :: create gz in ubuntu 
Shell :: how to install raspap 
Shell :: create new branch 
Shell :: install docker on server 
Shell :: Download file from URL on Linux using command line 
Shell :: react native cannot load 
Shell :: install nodejs via homebrew 
Shell :: chrome extension to safari extension 
Shell :: rebase my fork branch 
Shell :: create private repository github command line 
Shell :: what to do with the git config 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =