• skip to content

andunix.net

User Tools

  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: andunix.net » bash
Trace: • web • Solaris Manuals • WiFi Config QR-Code • Formatting Syntax • opensource • Home Server Goals • /etc/path_to_inst • Hello Drupal

bash
Please note, that this is an old archived version of this site. Check out the new version at andunix.net!

Search

You can find the results of your search below.

Contains
  • Exact match
  • Starts with
  • Ends with
  • Contains
Any namespace
  • Any namespace
  • info (27)
  • blog (8)
  • z (5)
  • tag (2)
  • p (1)
  • wiki (1)
Any time
  • Any time
  • Past week
  • Past month
  • Past year
Sort by hits
  • Sort by hits
  • Sort by last modified

Matching pagenames:

  • bash
  • bashrc
  • root login with bash

Fulltext results:

ZFS Playground @blog:2009
10 Hits, Last modified: 17 years ago
ks, but they are only files for this demo. <code bash> cd /var/tmp mkfile 200m c0d0 c0d1 c0d2 c1d0 c1d1 c1d2 </code> ===== Create Pool ===== <code bash> pfexec zpool create demo /var/tmp/c0d0 zpool st... d disk to the existing, creating a mirror. <code bash> pfexec zpool attach demo /var/tmp/c0d0 /var/tmp/... rollers. So, let's replace c0d1 with c1d0. <code bash> pfexec zpool replace demo /var/tmp/c0d1 /var/tmp
root login with bash @info:script
7 Hits, Last modified: 13 years ago
====== root login with bash ====== On our systems, the ''root'' account is set to be a role, so you can... urne shell (''/bin/sh''), but working with ''/bin/bash'' is much easier. Using this command, you can directly log in as ''root'' with a ''bash'' shell. ssh demo.lab.example.com -t "su - root -c /bin/bash"' I set it up as an alias in ''.bashrc'': ali
Cleanup Packages @info:linux:debian
7 Hits, Last modified: 12 years ago
ut not purged) packages with this command: <code bash> dpkg --get-selections | grep 'deinstall$' </code... irectly to aptitude to purge the packages: <code bash> aptitude purge $(dpkg --get-selections | grep 'd... First, you have to install ''deborpan'': <code bash> aptitude install deborphan </code> Then you can get the list of orphans: <code bash> deborphan </code> If you want, you can even mor
How To Create a Moveable VM with VirtualBox @blog:2010
6 Hits, Last modified: 16 years ago
the extensions for the generated scripts. <code bash> VBOX="/usr/bin/VBoxManage" SCRIPT_EXT="command" ... rameters in case the user enters no value. <code bash> RAM="512" DISK_SIZE="8196" DISK_TYPE="vdi" </cod... r example, the question for the disk size: <code bash> echo -n "Enter disk size in MiB [${DISK_SIZE}]: ... figured according to the parameters above. <code bash> mkdir -p "${VM_DIR}" ${VBOX} -q createvm --nam
localeadm @info:solaris
6 Hits, Last modified: 13 years ago
nt it (insert your path in the first line. <code bash> ISOIMG="/share/iso/sol-10-u8-ga-sparc-dvd.iso" L... ote: If you're using the bourne shell (instead of bash or ksh), then use backticks in the second line: '... es ===== ==== List Installed Locales ==== <code bash> localeadm -lc </code> Example output: <code> C... /code> ==== List Installable Locales ==== <code bash> localeadm -lc -d /mnt/Solaris_10/Product </code>
Travian Map Download Script @z:travian
4 Hits, Last modified: 13 years ago
it to the database. ===== config.inc ===== <code bash> # # database DB_USER="travian" # set this to you... --output " </code> ===== cron.hourly ===== <code bash> #! /bin/sh echo `date +'%Y-%m-%d %H:%M'`: $0 f... et.sh ${w} done </code> ===== get.sh ===== <code bash> #! /bin/sh BIN_DIR=`dirname $0` . ${BIN_DIR}/co... .bz2 fi fi </code> ===== import.sh ===== <code bash> #! /bin/sh BIN_DIR=`dirname $0` . ${BIN_DIR}/co
rmdir for OSX @info:mac
4 Hits, Last modified: 10 years ago
es from the command line quite complicated: <code bash> $ rmdir test rmdir: test: Directory not empty $ ... Store $ /bin/rmdir test </code> I wrote a small bash function to remove directories together with the contained ''.DS_Store'' file: <code bash> rmdir() { for d in "$@" do f="${d%/}/.DS_Store"... ction you can remove the directory at once: <code bash> $ rmdir test removing test/.DS_Store </code> {{
Disable a Service @info:linux:debian
4 Hits, Last modified: 9 years ago
le a Service ====== To disable a service: <code bash> service <service> stop update-rc.d <service> ena... With ''systemd'' (starting with Debian 8): <code bash> systemctl disable <service> </code> To (re)enable a service: <code bash> update-rc.d <service> enable|disable service <se... With ''systemd'' (starting with Debian 8): <code bash> systemctl enable <service> </code> {{tag>linux
DynDNS Updates without a Client @info:script
4 Hits, Last modified: 13 years ago
lient for my OpenSolaris Home Server, but a small bash script does the job as good as any other client. <code bash dyndns-update.sh> #! /bin/bash . ${HOME}/.dyndns.cfg DOMAINS=$(cat ${HOME}/.dyndns.domains) echo "$... yndns.cfg''. Here an example config file: <file bash dyndns.cfg> LOGIN="jdoe:secret" UPDATE_URL="http:
MacPorts @info:mac
4 Hits, Last modified: 10 years ago
=== List Ports ===== list requested ports: <code bash> port echo requested | cut -d ' ' -f 1 | uniq </code> list installed ports: <code bash> port -qv installed </code> ===== Housekeeping =... You can see a list of all installed ports: <code bash> port echo installed </code> After you run MacPo... ot of duplicate ports. You can clean these: <code bash> sudo port uninstall inactive </code> {{tag>admi
Shell Script Variables @info:script
3 Hits, Last modified: 10 years ago
er ===== Get the last character of ''$a'': <code bash> ${a: -1} </code> ===== Remove Slash from the En... ===== Remove a trailing slash from ''$a'': <code bash> a=${a%/} </code> {{tag>scripting bash sysadmin variable}}
Oracle: Recovery Manager @info:oracle
3 Hits, Last modified: 13 years ago
====== ===== Start Recovery Manager ===== <code bash> rman target / </code> ===== Delete Archive Logs... ting all logs except the last three days): <code bash> #!/bin/bash . ${HOME}/.profile rman target / << __EOF__ DELETE NOPROMPT ARCHIVELOG ALL COMPLETED B
OpenSolaris / VirtualBox: Mount Shared Folder @blog:2009
3 Hits, Last modified: 17 years ago
file system type ''vboxfs''. The Usage is: <code bash> mount -F vboxfs <share> <mountpoint> </code> If... exist. You will have to do this only once. <code bash> pfexec mkdir /share </code> Now, mount the share. <code bash> pfexec mount -F vboxfs share /share </code> If
bash @tag
3 Hits, Last modified: 10 years ago
====== bash ====== ===== Pages ===== {{topic>bash&nouser&tags}} ===== Bookmarks ===== {{rss>http://www.andunix.net/link/rss/all/bash}}
Compare directories @info:script
3 Hits, Last modified: 7 years ago
f the directories, generate a digest file: <code bash> find DIR -type f -exec shasum {} + | LC_ALL=C so... er that, you can diff the two shasums.txt: <code bash> diff shasums1.txt shasums2.txt </code> Or you use Meld as graphical diff tool: <code bash> meld shasums1.txt shasums2.txt </code> {{tags>c
bashrc @tag
3 Hits, Last modified: 12 years ago
IPS Repository Appliance @blog:2010
3 Hits, Last modified: 15 years ago
Setting the Timezone @info:linux:debian
3 Hits, Last modified: 13 years ago
Android Backup @info:android
3 Hits, Last modified: 13 years ago
Command Line Audio @info:mac
2 Hits, Last modified: 13 years ago
MySQL: Backup @info:mysql:database
2 Hits, Last modified: 13 years ago
Start and Stop the Apple File Server from Command Line @blog:2011
2 Hits, Last modified: 10 years ago
Upgrade Solaris 11/OpenSolaris from Text to Graphical @blog:2010
2 Hits, Last modified: 15 years ago
base-net-load-url @z:relax:api:base
2 Hits, Last modified: 13 years ago
Memory Usage of a Solaris Container (Zone) @blog:2010
2 Hits, Last modified: 16 years ago
Oracle: EXP @info:oracle
1 Hits, Last modified: 13 years ago
Install the Java-Plugin for Firefox @info:java
1 Hits, Last modified: 11 years ago
Make your Mac feel at Home @info:mac
1 Hits, Last modified: 10 years ago
Download a Server Certificate @info:cryptography:openssl
1 Hits, Last modified: 11 years ago
Formatting Syntax @wiki
1 Hits, Last modified: 5 years ago
Print Information about a Signature @info:cryptography:openssl
1 Hits, Last modified: 11 years ago
pargs for Linux @info:linux
1 Hits, Last modified: 12 years ago
Set a Mac's Hostname @info:mac
1 Hits, Last modified: 10 years ago
Change Encoding with iconv @info:script
1 Hits, Last modified: 13 years ago
List Open Ports @info:sysadmin
1 Hits, Last modified: 9 years ago
Comapct Sparse Image @info:mac
1 Hits, Last modified: 10 years ago
Simulating slow network connections with trickle @blog:2014
1 Hits, Last modified: 12 years ago
base-repo-get-value @z:relax:api:base
1 Hits, Last modified: 13 years ago
host-user-list @z:relax:api:host
1 Hits, Last modified: 13 years ago
andunix-tool @p:andunix-tool
1 Hits, Last modified: 13 years ago
SSH @info:sysadmin
1 Hits, Last modified: 10 years ago
Cursor Size @info:linux:gnome
1 Hits, Last modified: 10 years ago
base-repo-get-service @z:relax:api:base
1 Hits, Last modified: 13 years ago
Disable Core Dumps @info:linux
1 Hits, Last modified: 12 years ago

Page Tools

  • Show page
  • Old revisions
  • Backlinks
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution 4.0 International
CC Attribution 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki