This command shows the filesize of an ISO image.
-21:19:07-- flynn@flynn-grid-runner [/media/Elements/Files/ISOs]$ isosize -d 1024 en_windows_7_ultimate_x64_dvd_x15-65922.iso 3149108 |
This may also be achieved with the ls command.
-21:19:06-- flynn@flynn-grid-runner [/media/Elements/Files/ISOs]$ ls -Hula en_windows_7_ultimate_x64_dvd_x15-65922.iso -rw------- 1 flynn flynn 3.1G 17-03-12 10:48 pm en_windows_7_ultimate_x64_dvd_x15-65922.iso |
The od command will print out a file in octal format.
-21:30:21-- flynn@flynn-grid-runner [~/Desktop]$ od Document.txt 0000000 177377 000124 000157 000040 000166 000151 000145 000167 0000020 000040 000164 000150 000145 000040 000143 000157 000156 0000040 000164 000145 000156 000164 000163 000040 000157 000146 0000060 000040 000141 000156 000040 000111 000123 000117 000040 0000100 000240 000151 000155 000141 000147 000145 000054 000040 0000120 000164 000150 000145 000040 000151 000163 000157 000151 0000140 000156 000146 000157 000040 000143 000157 000155 000155 0000160 000141 000156 000144 000040 000146 000157 000162 000040 0000200 000114 000151 000156 000165 000170 000040 000167 000151 |
The hd command will do the same thing in hexadecimal format.
-21:30:25-- flynn@flynn-grid-runner [~/Desktop]$ hd Document.txt 00000000 ff fe 54 00 6f 00 20 00 76 00 69 00 65 00 77 00 |..T.o. .v.i.e.w.| 00000010 20 00 74 00 68 00 65 00 20 00 63 00 6f 00 6e 00 | .t.h.e. .c.o.n.| 00000020 74 00 65 00 6e 00 74 00 73 00 20 00 6f 00 66 00 |t.e.n.t.s. .o.f.| 00000030 20 00 61 00 6e 00 20 00 49 00 53 00 4f 00 20 00 | .a.n. .I.S.O. .| 00000040 a0 00 69 00 6d 00 61 00 67 00 65 00 2c 00 20 00 |..i.m.a.g.e.,. .| 00000050 74 00 68 00 65 00 20 00 69 00 73 00 6f 00 69 00 |t.h.e. .i.s.o.i.| 00000060 6e 00 66 00 6f 00 20 00 63 00 6f 00 6d 00 6d 00 |n.f.o. .c.o.m.m.| 00000070 61 00 6e 00 64 00 20 00 66 00 6f 00 72 00 20 00 |a.n.d. .f.o.r. .| 00000080 4c 00 69 00 6e 00 75 00 78 00 20 00 77 00 69 00 |L.i.n.u.x. .w.i.| 00000090 6c 00 6c 00 20 00 63 00 6f 00 6d 00 65 00 20 00 |l.l. .c.o.m.e. .| 000000a0 69 00 6e 00 20 00 76 00 65 00 72 00 79 00 20 00 |i.n. .v.e.r.y. .| 000000b0 75 00 73 00 65 00 66 00 75 00 6c 00 20 00 69 00 |u.s.e.f.u.l. .i.| 000000c0 6e 00 64 00 65 00 65 00 64 00 2e 00 20 00 4a 00 |n.d.e.e.d... .J.| 000000d0 75 00 73 00 74 00 20 00 74 00 79 00 70 00 65 00 |u.s.t. .t.y.p.e.| 000000e0 20 00 69 00 73 00 6f 00 69 00 6e 00 66 00 6f 00 | .i.s.o.i.n.f.o.| 000000f0 20 00 2d 00 66 00 20 00 2d 00 69 00 20 00 6d 00 | .-.f. .-.i. .m.| 00000100 79 00 69 00 73 00 6f 00 2e 00 69 00 73 00 6f 00 |y.i.s.o...i.s.o.| |
To print the environment to the terminal, use the printenv command, this is useful if you wish to see what environment variables are present on your system.
-21:39:10-- flynn@flynn-grid-runner [~/Desktop]$ printenv MATE_DESKTOP_SESSION_ID=this-is-deprecated SSH_AGENT_PID=2479 DM_CONTROL=/var/run/xdmctl GPG_AGENT_INFO=/tmp/keyring-uKkDCI/gpg:0:1 TERM=xterm SHELL=/bin/bash XDG_SESSION_COOKIE=e0f122a6e8faf4643446d07b00000009-1345639219.335408-1964559012 XDM_MANAGED=method=classic WINDOWID=65011716 MATE_KEYRING_CONTROL=/tmp/keyring-uKkDCI TIME_STYLE=+ %d-%m-%y %I:%M %P USER=flynn LS_COLORS=di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;39:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36: SSH_AUTH_SOCK=/tmp/keyring-uKkDCI/ssh MATECORBA_SOCKETDIR=/tmp/matecorba-flynn SESSION_MANAGER=local/flynn-grid-runner:@/tmp/.ICE-unix/2401,unix/flynn-grid-runner:/tmp/.ICE-unix/2401 DEFAULTS_PATH=/usr/share/gconf/mate.default.path PAGER=/usr/bin/less XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/flynn/bin:/usr/games:/usr/local/games:/home/flynn/bin:/home/flynn/bin:/usr/games:/usr/local/games DESKTOP_SESSION=mate PWD=/home/flynn/Desktop EDITOR=mcedit LANG=en_AU.UTF-8 MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path UBUNTU_MENUPROXY=libappmenu.so HOME=/home/flynn SHLVL=1 LANGUAGE=en_AU:en VIEWER=mcedit LESS=-i -e -M -P%t?f%f :stdin .?pb%pb\%:?lbLine %lb:?bbByte %bb:-... LOGNAME=flynn XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/ DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-ktslqFKfxa,guid=3592f2d8a632a73c04c743bd0000003f WINDOWPATH=7 DISPLAY=:0.0 COLORTERM=mate-terminal OLDPWD=/home/flynn _=/usr/bin/printenv |
The whodepends command for Debian based systems will display a list of maintainers a particular package depends on.
-21:50:13-- flynn@flynn-grid-runner [~/Desktop]$ whodepends vlc Dependent maintainers for vlc: Clement Lefebvre <root@linuxmint.com> (mint-meta-cinnamon-dvd mint-meta-mate) Chow Loong Jin <hyperair@ubuntu.com> (remuco-vlc) Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> (ardesia browser-plugin-vlc controlaula emms ezgo-multimedia freeplayer gaupol libvlc5 libvlc5:i386 ltsp-controlaula mediathekview pidgin-mpris python-mecavideo streamtuner2 tcos-core tunapie vlc-data vlc:i386 vlc-nox vlc-nox:i386) Bilal Akhtar <bilalakhtar@ubuntu.com> (gnome-media-player) Kubuntu Developers <kubuntu-devel@lists.ubuntu.com> (phonon-backend-vlc) Ubuntu MythTV Team <ubuntu-mythtv@lists.ubuntu.com> (hdhomerun-config-gui) |
And the who-uploads command will display information about the last uploaders for a particular package. This is meant to be used on a source package, I tried it on the alsa-source package and it returned no results. The 2.0.3 release of VLC has the fix for the input selection dialog.
-22:03:24-- flynn@flynn-grid-runner [~/Desktop]$ who-uploads vlc Could not find keyring /usr/share/keyrings/debian-keyring.gpg, skipping it Could not find keyring /usr/share/keyrings/debian-maintainers.gpg, skipping it Uploads for vlc: 2.0.3-2 to unstable: <unrecognised public key (EFC8774C)> 2.0.3-1 to unstable: <unrecognised public key (EFC8774C)> 2.0.2-2 to unstable: <unrecognised public key (EFC8774C)> |
The whoami command will return the username of the currently logged in user.
-22:06:33-- flynn@flynn-grid-runner [~/Desktop]$ whoami flynn |
This similar but more verbose command will also work. Listing all logins on the system ttys.
-22:08:06-- flynn@flynn-grid-runner [~/Desktop]$ who --all system boot 2012-08-22 22:39 run-level 2 2012-08-22 22:39 LOGIN tty4 2012-08-22 22:39 1659 id=4 LOGIN tty5 2012-08-22 22:39 1665 id=5 LOGIN tty2 2012-08-22 22:39 1682 id=2 LOGIN tty3 2012-08-22 22:39 1683 id=3 LOGIN tty6 2012-08-22 22:39 1686 id=6 LOGIN tty1 2012-08-22 22:39 2311 id=1 |