Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pkexec rsync -r -p -v --ignore-existing --modify-window=1 -D --existing -z -i /media/d0ctor/SD_CARD /media/d0ctor/SD_CARD/MY_BACKUPS
- How to Open Disk Management From Command Prompt
- Time Required: Opening Disk Management from the Command Prompt only takes several seconds, and probably much less once you learn the command.
- In Windows 10 and Windows 8, open Run from the Start menu or Apps screen (or see the A Quicker Method... section at the bottom of the page for an even faster way to get to Disk Management than using its command).
- In Windows 7 and Windows Vista, click on the Start button.
- In Windows XP and earlier, click on Start and then Run.
- Type the following Disk Management command in the text box:
- diskmgmt.msc
- ...and then hit the Enter key or press the OK button, depending on where you ran the command from.
- Note: Technically, opening Disk Management from the Command Prompt would require that you actually open the Command Prompt program. However, running an executable program like diskmgmt.msc from the search or Run box accomplishes the same thing.
- Note: Also, technically, diskmgmt.msc is not the "Disk Management command" any more than any non command-line tool's executable is a "command." In the strictest sense, diskmgmt.msc is just the Run command for the Disk Management program.
- You must extract it but you dont must extract it to your harddrive you can use stdtout and pipe it to genisoimage or mkisofs
- tar --to-stdout xf tareddata.tar | genisoimage -o image.iso tareddata
- test it: mount -o loop image.iso /mnt
- you can write a small script to automize this issue
- #!/bin/bash
- FILES="$@"
- for f in $FILES
- do
- # if .bak backup file exists, read next file
- if [ -f ${f}.bak ]
- then
- echo "Skiping $f file..."
- continue # read next file and skip the cp command
- fi
- # we are here means no backup file exists, just use cp command to copy file
- /bin/cp $f $f.bak
- done
- for I in 1 2 3 4 5
- do
- statements1 #Executed for all values of ''I'', up to a disaster-condition if any.
- statements2
- if (condition)
- then
- continue #Go to next iteration of I in the loop and skip statements3
- fi
- statements3
- done
- Sat Aug 11 18:17:48 EDT 2018
- NOTE: gdialog --backtitle "Word Count Script" --msgbox "Words: $a" 25 20
- Sun Aug 12 05:40:05 EDT 2018
- NOTE: (tar cf - .) | (gzip > /tmp/bin.tar.gz)
- Sun Aug 12 09:11:49 EDT 2018
- NOTE: find . -print | cpio -pdm /target/folder
- Sun Aug 12 10:21:55 EDT 2018
- NOTE: time (pbar | (tar cf - . | gzip > out.tgz) 2>&1 )
- Sun Aug 12 10:37:00 EDT 2018
- NOTE: tar -C $PWD --numeric-owner -S -c . | pv -tpeba -s 100G | tar -C /tmp/bin --numeric-owner -S -xp
- Sun Aug 12 10:56:15 EDT 2018
- NOTE: tar --to-stdout -S -c . | pv -tpeba -s 10G | gzip > /bkup/test.tar.tgz
- Sun Aug 12 11:07:58 EDT 2018
- NOTE: shell script example of checking for your scritps needed apt packages
- needed_tool='youtube-dl ffmpeg'
- require_tools () {
- local NOT_AVAIL=""
- for TOOL in $needed_tool; do
- if [ "`which $TOOL 2> /dev/null`" == "" ]; then NOT_AVAIL="$NOT_AVAIL $TOOL";
- fi
- done
- if [[ "$NOT_AVAIL" != "" ]]; then echo "ERROR: The following required tool(s) cannot be found: $NOT_AVAIL"
- exit
- 3
- fi
- }
- # Check If Package Downloaded
- require_tools
- Mon Aug 13 01:23:37 EDT 2018
- NOTE: s openvpn --config vpnbook-ca1-tcp80.ovpn --auth-user-pass ./vpnbook.auth
- Mon Aug 13 01:25:54 EDT 2018
- NOTE: cat /media/d0ctor/MISC./g0ne.iso/.dr3
- Mon Aug 13 18:26:40 EDT 2018
- NOTE: type -a 'CMD'
- Mon Aug 13 21:27:15 EDT 2018
- NOTE: nmcli connection show nmcli device show
- Mon Aug 13 21:33:19 EDT 2018
- NOTE: ls . | zenity --title "Choose File From Current Direcotry" --list --column "ImPerial TeK. Solutions {v1ral_ITS}" --width=1000 --height=200
- Mon Aug 13 22:49:07 EDT 2018
- NOTE: gnome-session-quit --reboot
- Mon Aug 13 22:49:20 EDT 2018
- NOTE: gnome-session-quit --logout
- Mon Aug 13 22:49:34 EDT 2018
- NOTE: gnome-session-quit --power-off
- Mon Aug 13 23:00:06 EDT 2018
- NOTE: PS1 = notes
- %F{blue}ITS%F{red}_%F{white} %F{yellow}~
- %F{blue} %Bv%F{green}%b1%Br%F{cyan}%bal%F{red}_%BITS %b%U%@%u -
- %b%F{red}%BITS%b%F{red} %F{white}%B<%/> %U%B%F{yellow}%@%u%F{black}-%b%F{white}%u %F{yellow}%k
- Mon Aug 13 23:10:12 EDT 2018
- NOTE: qps is a system and process monitor
- Mon Aug 13 23:35:00 EDT 2018
- NOTE: cp -r -u -v $SOURCE $DESTINATION
- Mon Aug 13 23:43:57 EDT 2018
- NOTE: you can create a file with "touch new.tar.gz" then use archivemount new.tar.gz /tmp/new and cp or mv any and all files to /tmp/new then fusermount -u /tmp/new and all the files will be in the new arhive
- NOTE:
- read FILE < <( echo "$(yad --file --multiple --width=800 --height=600 \
- --title="Select Files")" )
- Tue Aug 14 00:25:11 EDT 2018
- NOTE: tar cf - . | pv -tpeba -s 1G | gzip > awesome.tar.gz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement