Teljes szöveg:
- read @tudasbazis:linux:bash
- ntervening separators assigned to the last name. If there are fewer words read from the input stream ... aracter read and for line continuation. Options, if supplied, have the following meanings: ^ ''-a an... ine, rather than newline. | ^ ''-e'' | If the standard input is coming from a terminal,... the line. Readline uses the current (or default, if line editing was not previously active) editing s
- munin
- t eset:<code bash> ln -s /usr/share/munin/plugins/if_ /etc/munin/plugins/if_eth0 ln -s /usr/share/munin/plugins/if_ /etc/munin/plugins/if_eth1</code> - Ellenőrizni kell a scriptet, hogy van-e benne ... loadtime lrwxrwxrwx 1 root root 32 Jun 3 14:39 if_err_eth0 -> /usr/share/munin/plugins/if_err_ lrwxrwxrwx 1 root root 32 Jul 2 14:23 if_err_eth1 -> /usr/share/munin/plugins/if_err_ lrwxrwxrwx 1 root root 28 Jun 3 14:39 if_eth
- dd
- a forrás és a cél is block device: <code bash> dd if=/dev/sdXXX of=/dev/sdYYY bs=4M iflag=direct oflag... áljuk az ''conv=fdatasync''-et is: <code bash> dd if=Downloads/ubuntu.iso of=/dev/sdXXX bs=4M iflag=fu... rített fájlba ===== * Egy szálon <code bash> dd if=/dev/sdX bs=4M iflag=direct status=progress | gzi... ip'' alternatívával (pl: 7 szálon) <code bash> dd if=/dev/sdX bs=4M iflag=direct status=progress | pig
- lvm
- using the live cd. Search for these tools: lvm2. If the cd do not have it, install it.<code bash> sud... me --nameprefixes --noheadings --rows "$dev") - if [ "$DM_VG_NAME" ] && [ "$DM_LV_NAME" ]; then - l... kingfailure "$DM_VG_NAME/$DM_LV_NAME" - rc=$? - if [ $rc = 5 ]; then - echo "Unable to find LVM vo... have non-empty volume group and logical volume + if [ -z "$DM_VG_NAME" ] || [ -z "$DM_LV_NAME" ]; the
- monitorozas
- roc /proc is a virtual file system. For example, if you do ls -l /proc/stat, you’ll notice that it has a size of 0 bytes, but if you do “cat /proc/stat”, you’ll see some content ... al system, this can also monitor remote systems. If you are running KDE desktop, go to Applications -... ill a process, change the priority of a process. If you are running GNOME desktop, go to System -> Ad
- samba
- 445, as clients no longer send this information. If you use this macro in an include statement on a d... | ^ ''%u'' | X | username of the current service, if any. | ^ ''%U'' | | session username (the usern... | X | the root directory of the current service, if any. | ^ ''%S'' | X | the name of the current service, if any. | ==== Server variables ==== ^ Variable ^
- lxc
- nable=memory swapaccount=1' /etc/default/grub if [ $? -ne 0 ] then set -e sudo... t install linux-generic-lts-trusty set +e if dpkg -l | grep -q '^ii xserver-xorg ' then ... ls/install.sh -O - | sudo bash } function reboot_if_required() { if [ -f /var/run/reboot-required ] then shutdown reboot fi } # MAI
- hdparm
- ead: <file bash> hdparm -A 1 /dev/sda </file> * If the disk is constantly too noisy, you can change ... ormance:<file> hdparm -M 128 /dev/sda </file> * If the disk synchronisation intervals are too short,... hese commands are only effective in the long-run, if you make the changes persistent. However, the set
- zfs
- 'target-machine' zfs receive -F dst_data_pool # If the above command is interrupted, type the follow... be affected. action: Restore the file in question if possible. Otherwise restore the entire p
- ssh
- d> # Uncomment and edit /etc/security/access.conf if you need to set complex # access limits that are ... et access from all sources. # This will only work if netgroup service is available. + : remote_access
- noip
- { local rc=0 local pid="$(get_pid)" if [ -z "${pid}" ]; then log_warning_msg "${... waiting_cycles="$[${waiting_cycles} - 1]" if [ "${waiting_cycles}" -lt 1 ]; then l
- grub
- zolos grub config:<code bash /etc/default/grub> # If you change this file, run 'update-grub' afterward... mand `vbeinfo' #GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" param
- bandwidthd
- andwidthd is recording #Usually set this to false if you only want cdf output or #you are using the da... on. Bandwidthd will use very little #ram and cpu if this is set to false. #graph true #Set META REFR
- zsh
- port ORIG_EXEC_STRING="${BASH_EXECUTION_STRING}" if [ -z "${ORIG_EXEC_STRING}" ] then zsh exi
- openssl
- enerátor ===== <code bash openssl.sh> #!/bin/bash if [ $# -ne 2 ]; then echo "Usage: openssl.sh <d
