Category : Linux/Unix
ps
ps – reports a snapshot of the current processes. ps displays information about a selection of the active processes. If you want a repetitive update of the selection and the displayed information, use top(1) instead. This version of ps accepts several kinds of options: 1 UNIX options, which may be grouped and must be preceded [...]
7z
7zip Help [code language="html"] 7z --help 7-Zip 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30 p7zip Version 9.04 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,1 CPU) Usage: 7z [...] [...] [] a: Add files to archive b: Benchmark d: Delete files from archive e: Extract files from archive (without using directory names) l: List contents of archive t: Test integrity of [...]
How to use tracd from the command line
trac can be found at http://trac.edgewall.org/ [code language="bash"] tracd --port 8000 /var/trac_project_env tracd --port 8000 --auth=Product1,/var/trac_project_env/conf/trac.htpasswd,CompanyName /var/trac_project_env tracd --port 8000 --basic-auth="*",/var/trac_project_env/conf/trac.standalone.htpasswd,CompanyName /var/trac_project_env [/code] [code language="bash"] tracd --help Usage: tracd [options] [projenv] ... Options: --version show program's version number and exit -h, --help show this help message and exit -a DIGESTAUTH, --auth=DIGESTAUTH [projectdir],[htdigest_file],[realm] --basic-auth=BASICAUTH [projectdir],[htpasswd_file],[realm] -p [...]
curl
[code language="php"] /usr/bin/curl https://secure.mydomain.com/cronjob.php 2>/dev/null >/dev/null [/code] if you forget to renew your certificate your cron job may stop working so you may want to use this syntax instead [code language="php"] /usr/bin/curl --insecure https://secure.mydomain.com/cronjob.php 2>/dev/null >/dev/null [/code]
bashrc
Useful bashrc aliases edit your ~/.bashrc file by using VI vi ~/.bashrc alias l=”ls -la” alias st=’svn st’ alias di=’svn di’ alias di=’svn diff –diff-cmd diff -x -uw’ # ignore whitespaces alias ci=’svn ci’ alias up=”svn up” alias rs=”rsync –verbose –stats –recursive –times –perms –links –delete –exclude ‘*bak’ –exclude ‘*~’ –exclude ‘._*’ $1 $2″ EDITOR=vi [...]
wget
How to download a site using wget [code language="bash"] wget --mirror --convert-links --backup-converted --html-extension -o domain.log http://domain.com/ [/code] Download the file in background. [code language="bash"] wget -bd http://domain.com/file.zip -o file-download.log [/code] Will download all the links from the list.txt file and pretending that it’s Firefox. wget –continue –verbose –input-file=”list.txt” –output-file=”list.log” –user-agent=”Mozilla/5.0 (Windows NT 6.1; [...]
VBoxManage
VirtualBox command line usage [code language="bash"] VBoxManage [-v|-version] print version number and exit VBoxManage -nologo ... suppress the logo VBoxManage -convertSettings ... allow to auto-convert settings files VBoxManage -convertSettingsBackup ... allow to auto-convert settings files but create backup copies before VBoxManage -convertSettingsIgnore ... allow to auto-convert settings files but don't explicitly save the results VBoxManage [...]