Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Page
Discussion
Edit
View history
Editing
Mika/Notes/Computer Stuff
(section)
From WikiDotMako
Jump to:
navigation
,
search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=Command line= * arch: get architecture info * uname -a: print system info * xev: finds information on the pressed keys * xmodmap -e "keycode ###=Multi_key": Enter the key number in ### to set the compose key. * import -windows root screenshot.png: Takes a screenshot of the entire screen instead of a window. * sudo acpi -V: tells me the temperature of my computer. * cat /etc/issue: gives the current version of Ubuntu. * cat /etc/debian_version: give the current version of Debian. * apt-cache policy (package name) to get the policy info. * rsync -rP: synches data with the options recursive and partial. * ssh-keygen -p: lets me change the ssh password. * df -h: sizes for disk space. Useful for checking where things are mounted too. * du -h: sizes for all folders. * du -sk /* | sort -n: sort everything by size in /. * curl (url): prints out the content of the link. * bash (wordpress upgrade scrip) instead of sh because /bin/sh is no longer bash. * alias ls='ls --color=auto' to color directories. Needed it when switched to zsh. * zcat access.log.*.gz | visitors - * sudo fdisk -l: gives types of removable disk (ie fat16 fat32, in which case for mount, -t vfat) * mount -t vfat /dev/sd?? /mount/usb * tar xvzf file.tar.gz * mount: this gives the all the mounted items along with file system info etc. * lspci or lsub to find out wireless card types. Mine only does ad-hoc wifi. * ldd /usr/bin/bubblefishymon (or other executable files): show which shared libraries are linked to this file. Useful for troubleshooting. See atmarkit in Bookmarks. * ps -p $$ or echo $SHELL to find out which shell I'm using. * rename 's/x/y/' *file* changes files names by substituting x with y. If I do 's/x/y/g', g stands for global and if there are multiple x within one filename, it will replace all x's within that particular filename. Just like gsub in R. * history 1 to show all history (max set in ~/.zshrc as HISTSIZE). * ./duplicity-cloud to back up files. update duplicity_exclude if necessary. * send stuff between two computers using netcat: nc -l -p (port number) on one end and cat (whatever file)|pv|nc (whatever ip (get from ifconfig) (same port number) on the other computer
Summary:
Please note that all contributions to WikiDotMako are considered to be released under the Attribution-Share Alike 3.0 Unported (see
WikiDotMako:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Tools
What links here
Related changes
Special pages
Page information