New pages
- 14:30, 21 September 2015 Udev (hist) [111 bytes] Milosivanovic (talk | contribs) (Created page with "== Disable new-style interface naming == <pre> ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules </pre>")
- 14:15, 21 September 2015 Systemd/network (hist) [499 bytes] Milosivanovic (talk | contribs) (Created page with "== Static IP setup == File: <code>/etc/systemd/network/wired.network</code> <pre> [Match] Name=eth0 [Network] DNS=8.8.8.8 Address=192.168.101.2/24 Address=123.123.123.123/32...")
- 15:28, 5 August 2015 Sysctl (hist) [1,596 bytes] Milosivanovic (talk | contribs) (Created page with "== Disable rp_filter == <pre> for i in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 0 > $i done </pre>")
- 16:38, 3 August 2015 Iproute2 (hist) [140 bytes] Milosivanovic (talk | contribs) (Created page with "== Add a VLAN == <pre> ip link add link eth0 name eth0.100 type vlan id 100 </pre> == Remove a VLAN == <pre> ip link delete eth0.100 </pre>")
- 19:54, 5 July 2015 Openssl (hist) [132 bytes] Milosivanovic (talk | contribs) (Created page with "== Generate self-signed certificate == <pre> openssl req -x509 -nodes -days 365 -newkey rsa:2048 -out out.crt -keyout out.key </pre>")
- 16:05, 24 June 2015 Xargs (hist) [286 bytes] Milosivanovic (talk | contribs) (Created page with "== Build argument list from previous output == <pre> command | xargs ls -l </pre> == Run command per line of previous output == <pre> command | xargs -L1 ls -l </pre> == Run...")
- 22:30, 13 June 2015 Entropy (hist) [857 bytes] Milosivanovic (talk | contribs) (Created page with "== View available entropy == <pre> cat /proc/sys/kernel/random/entropy_avail </pre> == Increase available entropy == This is applicable to non-interactive machines such as se...")
- 20:24, 12 June 2015 Tar (hist) [77 bytes] Milosivanovic (talk | contribs) (Created page with "== List files in archive without extracting == <pre> tar tf <file.tar> </pre>")
- 19:36, 8 June 2015 Filefrag (hist) [99 bytes] Milosivanovic (talk | contribs) (Created page with "== Check fragmentation information about a given file == <pre> filefrag -v /var/log/messages </pre>")
- 13:21, 2 June 2015 Gdisk (hist) [105 bytes] Milosivanovic (talk | contribs) (Created page with "== Convert MBR to GPT without data loss == <pre> gdisk /dev/sdX </pre> Then type <code>w</code> as input.")
- 08:22, 30 May 2015 Xorg.conf (hist) [886 bytes] Milosivanovic (talk | contribs) (Created page with "== Xorg.conf file for QEMU/KVM VMs == <pre> # This is an Xorg configuration file for QEMU/KVM virtual machines. # It lets you run with resolutions larger than 800x600. # # Sa...")
- 18:03, 25 May 2015 Android/adb (hist) [114 bytes] Milosivanovic (talk | contribs) (Created page with "== View Android system log file == <pre> adb logcat </pre>")
- 18:02, 25 May 2015 Android/fastboot (hist) [291 bytes] Milosivanovic (talk | contribs) (Created page with "== Common fastboot commands == <pre> fastboot flash recovery recovery.img </pre> <pre> fastboot flash boot boot.img </pre> <pre> fastboot flash cache cache.img </pre> <pre> fa...")
- 02:07, 25 May 2015 X (hist) [300 bytes] Milosivanovic (talk | contribs) (Created page with "== startx fails with repeated "Invalid MIT-MAGIC-COOKIE-1" == <pre> rm ~/.Xauthority* rm ~/.ICE* </pre>")
- 04:15, 21 May 2015 Qemu (hist) [206 bytes] Milosivanovic (talk | contribs) (Created page with "== Mount qcow2 image == === To start === <pre> modprobe nbd max_part=63 qemu-nbd -c /dev/nbd0 image.img mount /dev/nbd0p1 /mnt/image </pre> === To finish === <pre> umount /mn...")
- 03:30, 3 May 2015 Tune2fs (hist) [213 bytes] Milosivanovic (talk | contribs) (Created page with "== Find filesystem creation date == <pre> tune2fs -l /dev/sdX </pre> <code>-l</code> list the contents of the filesystem superblock, including the current values of the parame...")
- 02:07, 3 May 2015 Resize2fs (hist) [172 bytes] Milosivanovic (talk | contribs) (Created page with "== Resize ext4 partition to end of partition boundary == <pre> resize2fs /dev/sdX3 </pre> == Resize ext4 partition to specific size == <pre> resize2fs /dev/sdX3 50G </pre>")
- 07:48, 7 April 2015 Miscellaneous (hist) [491 bytes] Milosivanovic (talk | contribs) (Created page with "== How many additional threads did a process spawn? == <pre> strace <process_name> 2>&1 | grep -e fork -e clone | wc -l </pre>")
- 04:49, 3 April 2015 Lsof (hist) [101 bytes] Milosivanovic (talk | contribs) (Created page with "== List open files on / in RW or W mode only == <pre> lsof / | grep -e "digit:\+\(u\|w\)" </pre>")
- 13:02, 24 March 2015 Stty (hist) [106 bytes] Milosivanovic (talk | contribs) (Created page with "== Change terminal width == <pre>stty cols 237</pre> == Change terminal height == <pre>stty rows 63</pre>")
- 04:55, 23 March 2015 Arch/VLC (hist) [220 bytes] Milosivanovic (talk | contribs) (Created page with "== Segmentation fault (core dumped) == Remove the following plugins: <pre> libnotify_plugin.so libkate_plugin.so libgnomevfs_plugin.so gui/libqt4_plugin.so </pre>")
- 12:54, 22 March 2015 Sgdisk (hist) [187 bytes] Milosivanovic (talk | contribs) (Created page with "== Wipe MTR and GPT partition tables == <pre> sgdisk -Z /dev/sdX </pre> <code>-Z</code> same as <code>--zap-all</code> — Zap (destroy) the GPT and MBR data structures an...")
- 12:41, 22 March 2015 Mdadm (hist) [812 bytes] Milosivanovic (talk | contribs) (Created page with "== Remove a drive from an active array == <pre> mdadm --manage /dev/md0 --fail /dev/sdX # set the drive as failed mdadm --manage /dev/md0 --remove /dev/sdX # remove the drive...")
- 11:02, 21 March 2015 Benchmarks (hist) [3,668 bytes] Milosivanovic (talk | contribs) (Created page with "== RAID 6 + LUKS == <pre> eclipse shared # dd if=/dev/zero of=file bs=64M count=100 conv=fdatasync 100+0 records in 100+0 records out 6710886400 bytes (6.7 GB) copied, 19.457...")
- 21:15, 8 March 2015 Tmux (hist) [162 bytes] Milosivanovic (talk | contribs) (Created page with "== Setting environment variables == Press <code>CTRL+B</code> and then <code>:</code> (colon)<br /> Type the following: <pre> set-environment ENV_VAR VALUE </pre>")
- 06:32, 4 February 2015 Debian/dpkg (hist) [95 bytes] Milosivanovic (talk | contribs) (Created page with "== Find out which package a file belongs to == <pre> dpkg -S `readlink -f /path/to/java` </pre>")
- 03:20, 16 January 2015 Git (hist) [1,138 bytes] Milosivanovic (talk | contribs) (Created page with "== Undo last commit and KEEP changes == <pre> git reset --soft HEAD~1 </pre> == Undo last commit and LOSE changes == <pre> git reset --hard HEAD~1 </pre>")
- 03:01, 16 January 2015 Linux/Agnostic (hist) [1,696 bytes] Milosivanovic (talk | contribs) (Created page with "== Finding out file creation time == Only available on <strong>ext4</strong>.<br /> Use the <code>stat</code> command - the file creation time will be denoted as the <code>Bir...")
- 07:59, 7 January 2015 Debian//etc/network/interfaces (hist) [541 bytes] Milosivanovic (talk | contribs) (Created page with "= DHCP setup = <pre> auto eth0 iface eth0 inet dhcp </pre> = Static IP setup = <pre> auto eth0 iface eth0 inet static address 192.168.100.2 netmask 255.255.255.248 gateway...")
- 16:40, 8 December 2014 Windows/TabletPCSettings (hist) [266 bytes] Milosivanovic (talk | contribs) (Created page with "= Opening Table PC Settings via Command Prompt = For an unknown reason, Tablet PC Settings can disappear from Control Panel. To open it using Command Prompt, run the following...")
- 05:28, 5 November 2014 Ffmpeg (hist) [362 bytes] Milosivanovic (talk | contribs) (Created page with "== Common arguments == <code>-ss</code> position, in seconds or hh:mm:ss[.xxx]<br /> <code>-t</code> duration from start position<br /> <code>-acodec</code> audio codec<br />...")
- 14:27, 17 October 2014 Core dump (hist) [668 bytes] Milosivanovic (talk | contribs) (Created page with "= Enabling core dumps = The core file size is 0 by default, which results in no core being generated: <pre> sh# ulimit -a core file size (blocks, -c) 0 ... ... ... </...")
- 11:52, 21 September 2014 Setfacl (hist) [364 bytes] Milosivanovic (talk | contribs) (Created page with "= Common arguments = <code>-b</code> remove all ACL entries = What is that weird plus sign in ls -l output? = It means the file has ACLs associated with it. <pre> -rw------...")
- 13:35, 18 August 2014 Cryptsetup (hist) [885 bytes] Milosivanovic (talk | contribs) (Created page with "== Common arguments == <pre> --verify-passphrase, -y When interactively asking for a passphrase, ask for it twice and complain if both inputs do...")
- 04:30, 17 August 2014 Gai.conf (hist) [99 bytes] Milosivanovic (talk | contribs) (Created page with "= Prefer IPv4 over IPv6 = Uncomment the following line: <pre> #precedence ::ffff:0:0/96 100 </pre>")
- 16:18, 27 July 2014 Mount (hist) [344 bytes] Milosivanovic (talk | contribs) (Created page with "== Mount disk image == <source lang="bash"> mount -oloop,offset=1048576 image.img /mnt/destination </source>")
- 09:50, 23 July 2014 Virt-install (hist) [248 bytes] Milosivanovic (talk | contribs) (Created page with "== Define and start libvirt virtual machine == <source lang="bash">virt-install --name softeng306 --ram 512 --disk /path/to/image.img,format=qcow2 --cdrom /path/to/ubuntu-14.0...")
- 02:16, 17 July 2014 Cryptography/EncryptionComparison (hist) [127 bytes] Milosivanovic (talk | contribs) (Created page with "= DES vs 3DES vs AES = http://stackoverflow.com/questions/5554526/comparison-of-des-triple-des-aes-blowfish-encryption-for-data")
- 23:33, 9 July 2014 Wget (hist) [168 bytes] Milosivanovic (talk | contribs) (Created page with "== Common arguments == <code>-O</code> output file = Download a file to a specific location = <source lang="bash"> wget http://www.google.com/ -O /dev/null </source>")
- 23:21, 9 July 2014 Netstat (hist) [315 bytes] Milosivanovic (talk | contribs) (Created page with "= Common arguments = <code>-t</code> include tcp<br /> <code>-u</code> include udp<br /> <code>-l</code> show only listening sockets<br /> <code>-p</code> show PID and program...")
- 11:12, 8 July 2014 Curl (hist) [217 bytes] Milosivanovic (talk | contribs) (Created page with "== Check response headers == <source lang="bash"> curl -I http://www.google.com/ </source>")
- 02:43, 5 July 2014 Socat (hist) [123 bytes] Milosivanovic (talk | contribs) (Created page with "== Forward TCP packets == <source lang="bash"> socat TCP-LISTEN:[local_port],fork TCP:[remote_host]:[remote_port] </source>")
- 03:09, 4 July 2014 Sed (hist) [106 bytes] Milosivanovic (talk | contribs) (Created page with "== Get lines between two line numbers == <source lang="bash"> sed -n '156559,157787p' Master.csv </source>")
- 01:40, 4 July 2014 Scp (hist) [299 bytes] Milosivanovic (talk | contribs) (Created page with "== Common arguments == <code>-r</code> recursive<br /> <code>-P</code> port number (default 22) == Push a file == <source lang="bash"> scp ./path/to/source user@host:/path/to...")
- 12:01, 30 June 2014 Rsync (hist) [616 bytes] Milosivanovic (talk | contribs) (Created page with "== Common arguments == <code>-a</code> same as <code>--archive</code><br /> <code>-v</code> same as <code>--verbose</code><br /> <code>-x</code> same as <code>--one-file-syste...")
- 11:49, 30 June 2014 SSH (hist) [374 bytes] Milosivanovic (talk | contribs) (Created page with "== Push a file == <source lang="bash"> ssh ./path/to/source user@host:/path/to/destination </source> == Pull a file == <source lang="bash"> ssh user@host:/path/to/source ./pa...")
- 11:03, 30 June 2014 Find (hist) [1,477 bytes] Milosivanovic (talk | contribs) (Created page with "== Between dates == <syntaxhighlight lang="bash"> find / -newermt "27 Dec 2013" ! -newermt "1 Jan 2014" </syntaxhighlight>")
- 02:13, 25 June 2014 MySQL (hist) [1,579 bytes] Milosivanovic (talk | contribs) (Created page with "= MySQL = == Adding a user == <syntaxhighlight lang="mysql"> grant all privileges on {database_name}.* to {database_user}@'%' identified by 'their_password'; </syntaxhighlight...")
- 23:28, 24 June 2014 Main Page (hist) [212 bytes] MediaWiki default (talk)