Live, Learn, and Dream

A place to hold things that inspire, amaze, inform, and/or educate

Tag Archives: Computer

Linux Cheat Sheet

I randomly came across this Linux Cheat Sheet.
For many beginners in Linux, this can be extremely helpful.
So far the document contains 550+ lines, and it is too long to copy everthing and paste it here, so I only post 100+ lines here. Go view the complete document at github if interested.

===========================================================================================
# cheat_sheet.org.sh
# (C) William Hackmore, 2010
# The contents of this file are released under the GNU General Public License. Feel free to reuse the contents of this work, as long as the resultant works give proper attribution and are made publicly available under the GNU General Public License.
# Best viewed in emacs org-mode.

* Reference:
** Basics:
*** Getting help:

# View the manual for target command
man command

# Get help with a target command (probably the same as above, but not always):
command -h

# In case you forget the name of a command, print possible commands relating to guess:
apropos guess

# View index of help pages:
info

*** Command Line Utilities:
**** Basic File and Directory Operations:
# Print current working directory:
pwd

# Show files in current directory:
ls

# Show maximum information about all files, including hidden:
ls -a

# Recurse into subdirectories and list those as well:
ls -R

# Move/rename a file or directory (be careful that you don’t move the source over a destination with the same name):
mv source destination

# Delete target forever (be very careful), use -r recursive flag for directories:
rm target

# Copy file or directory:
cp source destination

# Mount filesytem:
mount /dev/device_name /media/device_name

# Unmount:
umount /media/device name

# Forensically clone filesystems and do other low-level operations on files. Be careful with this one. Can be destructive:
dd

# Work with filesystems and partitions. (Easier, still quite dangerous):
fdisk

**** System Administration:

# Execute command as an administrator (can be destructive/insecure. Use only for system administration tasks):
sudo command

# Become system administrator:
sudo -s

# Quit system administration:
exit

***** Installing software from a .tgz (also known as a tarball):

# First, unzip the tarball (see section on tar, below)
# Next, move into unzipped directory:
cd software_directory

# Always read README first if it is provided, in case there are any modifications to the procedure outlined below:
cat README

# Automatically check for appropriate configurations and generate a MAKE file in the directory:
./configure

# Compile software. May require sudo:
make

# Move files into their appropriate locations. May also require sudo:
make install

# Clean up files in directory, in case make command fails, or just to remove unnecessary cruft:
make clean

***** Ubuntu/Debian Software repositories:

# Check distro repositories for software updates:
sudo apt-get update

# Download and install updates (update first):
sudo apt-get upgrade

# Search for package in the repositories:
apt-cache search keyword

# Get more detail on one specific package:
apt-cache show package_name

# Download and install a package:
sudo apt-get install package_name

# View the output of a command in a more convenient format:
command | less

Borderlands 2 Shortcut

borderlands2_Splash
Recently, I have been playing Borderlands 2. It MAY have somewhat resulted in the apparent winter hibernation here. Just thought that I could post two tips here, and hopefully, they could help some speed up launching the game. Borderlands 2 is a very enjoyable game. I will probably rate the game 8.5/10. It would be a 9.0+ game if there were less little glitches.
Note: It is based on PC (and steam) version of the game. For non-steam (and PC) version, the location may be a little different, but everything else should be there same.

  1. Skip the BL2 launcher
    Create a desktop shortcut that point to the borderlands2.exe.
    The file should be located here (by default):
    C:\Program Files (x86)\Steam\steamapps\common\Borderlands 2\Binaries\Win32
    Note: You may still need to launch steam and login.
  2. Prevent movie(s) from being loaded at start
    1. Go to: C:\Program Files (x86)\Steam\steamapps\common\Borderlands 2\WillowGame\Config
    2. Make a copy of DefaultEngine.ini (A good habit)
    3. Edit DefaultEngine.ini file
    4. Find [Ctrl+F] “FullScreenMovie”, and under [FullScreenMovie] remove the following lines:

      +StartupMovies=2K_logo
      +StartupMovies=Gearbox_logo
      +StartupMovies=NVidia

      ; The game will automatically interpret the last entry in the list to be a generic looping movie, so make sure that the list has one… Comment was in the filename when loading.
      +StartupMovies=Loading

      Note: Keep those lines that allow you to skip movies

    5. Save DefaultEngine.ini file

Hope they help. Let me know if you want to co-op or are in needs of … anything. :P

%d bloggers like this: