In the macOS 12+ (Monteray, etc.) the .zprofile is replacing .bash_profile
Showing posts with label shell. Show all posts
Showing posts with label shell. Show all posts
Is .zprofile replacing .bash_profile in macOS?
find similar posts:
Bash,
command line,
macOS,
shell,
Terminal,
zsh
0
comments
Is .zprofile replacing .bash_profile in macOS?
In the macOS 12+ (Monteray, etc.) the .zprofile is replacing .bash_profile
find similar posts:
Bash,
command line,
macOS,
shell,
Terminal,
zsh
0
comments
Mac: moving large amount of files off to external drive
I have tried to clean up my hard drive in preparation to upgrade to SSD. Moving files using Finder FAILS all the time an in the end you don't know what was copied and what was not.
I used rsynch tool because it it smart enough to copy ONLY new and changed files, so I can run it multiple times and transfer only the differences (delta).
...sent 26005122366 bytes received 163790 bytes 20565667.19 bytes/sec
I used rsynch tool because it it smart enough to copy ONLY new and changed files, so I can run it multiple times and transfer only the differences (delta).
$ sudo rsync -varpog --progress ~/Documents/SourceDir/ /Volumes/1TB_BU/DestinationDir/ Password:building file list ... 8943 files to consider.DS_Store 159748 100% 121.10MB/s 0:00:00 (xfer#1, to-check=8941/8943)2013-08-15 09.35.24.mp4 87290465 100% 22.57MB/s 0:00:03 (xfer#2, to-check=7445/8943)2013-08-15 11.51.18.jpg
...sent 26005122366 bytes received 163790 bytes 20565667.19 bytes/sec
total size is 35588964732 speedup is 1.37
Consecutive runs:
building file list ... 8943 files to consider
Options:
$ sudo rsync -varhpog --progress ~/Documents/SourceDir/ /Volumes/1TB_BU/DestinationDir/
building file list ... 8943 files to consider
sent 173.28K bytes received 20 bytes 346.61K bytes/sectotal size is 35.59G speedup is 205355.70
Options:
-h show full help
-v verbose
--progress show progress while transfer
--progress show progress while transfer
-h unman readable
-q quiet for non-error
-q quiet for non-error
-r recursive
-a archive
-b backup
-p preserve permissions
-o preserve owner
-g preserve group
-z compress data during the transfer
In depth explanation:
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/rsync.1.html
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/rsync.1.html
find similar posts:
Linux/Unix,
Mac,
shell
0
comments
Mac: moving large amount of files off to external drive
I have tried to clean up my hard drive in preparation to upgrade to SSD. Moving files using Finder FAILS all the time an in the end you don't know what was copied and what was not.
I used rsynch tool because it it smart enough to copy ONLY new and changed files, so I can run it multiple times and transfer only the differences (delta).
...sent 26005122366 bytes received 163790 bytes 20565667.19 bytes/sec
I used rsynch tool because it it smart enough to copy ONLY new and changed files, so I can run it multiple times and transfer only the differences (delta).
$ sudo rsync -varpog --progress ~/Documents/SourceDir/ /Volumes/1TB_BU/DestinationDir/ Password:building file list ... 8943 files to consider.DS_Store 159748 100% 121.10MB/s 0:00:00 (xfer#1, to-check=8941/8943)2013-08-15 09.35.24.mp4 87290465 100% 22.57MB/s 0:00:03 (xfer#2, to-check=7445/8943)2013-08-15 11.51.18.jpg
...sent 26005122366 bytes received 163790 bytes 20565667.19 bytes/sec
total size is 35588964732 speedup is 1.37
Consecutive runs:
building file list ... 8943 files to consider
Options:
$ sudo rsync -varhpog --progress ~/Documents/SourceDir/ /Volumes/1TB_BU/DestinationDir/
building file list ... 8943 files to consider
sent 173.28K bytes received 20 bytes 346.61K bytes/sectotal size is 35.59G speedup is 205355.70
Options:
-h show full help
-v verbose
--progress show progress while transfer
--progress show progress while transfer
-h unman readable
-q quiet for non-error
-q quiet for non-error
-r recursive
-a archive
-b backup
-p preserve permissions
-o preserve owner
-g preserve group
-z compress data during the transfer
In depth explanation:
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/rsync.1.html
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/rsync.1.html
find similar posts:
Linux/Unix,
macOS,
shell
0
comments
Android: restarting app (APK) via adb
Often when you work with APK you need to restart it, it is much faster to create a Bash script for that:
echo '*** restart XYZ APK***'
echo 'Continue?'
read input
adb shell am force-stop com.xyz.package;
adb shell am start -n com.xyz.package/.SomeMainActivity
echo '*** restart XYZ APK***'
echo 'Continue?'
read input
adb shell am force-stop com.xyz.package;
adb shell am start -n com.xyz.package/.SomeMainActivity
find similar posts:
adb,
Android,
shell
0
comments
Android: restarting app (APK) via adb
Often when you work with APK you need to restart it, it is much faster to create a Bash script for that:
echo '*** restart XYZ APK***'
echo 'Continue?'
read input
adb shell am force-stop com.xyz.package;
adb shell am start -n com.xyz.package/.SomeMainActivity
echo '*** restart XYZ APK***'
echo 'Continue?'
read input
adb shell am force-stop com.xyz.package;
adb shell am start -n com.xyz.package/.SomeMainActivity
find similar posts:
adb,
Android,
shell
0
comments
GWTShell arguments
[java] Google Web Toolkit 1.4.61
[java] GWTShell [-port port-number | "auto"] [-noserver] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logLevel level] [-gen dir] [-out dir] [-style style] [url]
[java] where
[java] -port Runs an embedded Tomcat instance on the specified port (defaults to 8888)
[java] -noserver Prevents the embedded Tomcat server from running, even if a port is specified
[java] -whitelist Allows the user to browse URLs that match the specified regexes (comma or space separated)
[java] -blacklist Prevents the user browsing URLs that match the specified regexes (comma or space separated)
[java] -logLevel The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL
[java] -gen The directory into which generated files will be written for review
[java] -out The directory to write output files into (defaults to current)
[java] -style Script output style: OBF[USCATED], PRETTY, or DETAILED (defaults to OBF)
[java] and
[java] url Automatically launches the specified URL
find similar posts:
GWT,
shell
0
comments
Subscribe to:
Posts (Atom)
apt quotation..
“A man should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.” by Robert A. Heinlein (author, aeronautical engineer, and naval officer)