This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux Partitions - new file system | |
1. Create a Partition Table. | |
2. Create a Boot Partition at the beginning of the Drive (not necessary for an SSD or modern BIOS but good practice so you don't forget when on a "spinning rust drive"): | |
a. Use Ext2 file system (no journaling): | |
b. Mount Point: /boot | |
c. Make the size: >=512MB | |
d. Primary Partition and "Beginning of this space" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The "ls Command | |
How to list files in Terminal | |
COMMANDS & LINKS: | |
ls : list current directory | |
ls -l : list current directory using the "long" format | |
ls -a : list all the files, including hidden files, in the current directory | |
ls -al : list all the files, including hidden files, in the current directory using the "long" format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Basic Terminal Commands | |
A run through of some of the basic Terminal commands. Remember Linux is case sensitive so "hello" is not the same as "Hello". | |
You may be used to using the term "Folder". The terms Directory and Folder are interchangable. | |
COMMANDS & LINKS: | |
CTRL + ALT + T : Launch Terminal | |
whoami : Who you are logged in as |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File Commands | |
Some terminal file commands. | |
## __Warning__: The rm command removes files and directories. using the wrong switches with the rm command can delete the WHOLE of your Linux system! Always double check the command when using rm. | |
COMMANDS & LINKS: | |
mkdir stuff : Make a directory called stuff | |
rm -r stuff : Remove the directory called stuff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CHMOD | |
Changing permissions in a Linux Terminal | |
COMMANDS & LINKS: | |
chmod o+w stuff : give "others" write access to the file "stuff" | |
chmod o-w stuff : remove write access for "others" from "stuff" | |
chmod a-x stuff : remove exucutable permissions from "stuff" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SUDO | |
An introduction to Super User (sudo) on Linux. | |
COMMANDS & LINKS: | |
sudo : Super User do, run the command with Super User permissions. | |
cat stuff : Display the contents of stuff in terminal | |
sudo cat /proc/cpuinfo > ~/stuff : copy the contents of /proc/cpuinfo into ~/stuff | |
sudo chown john:john stuff : Change the ownership of a file or directory to user: john and group: john |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enabling password feedback in Terminal | |
When you run a command with sudo in Linux, the terminal prompts you to type in your password and doesn't give you any visual feedback. Here is a quick tweak that will display asterisks (*) when you type in your password. | |
IMPORTANT: Only make the change shown below. DO NOT make any other changes to the file. | |
In Terminal, run the command: | |
sudo visudo | |
Find the line (use the up or down arrow keys on your keyboard): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updates and Upgrades | |
How to keep your Linux system up to date. | |
COMMANDS & LINKS: | |
sudo apt-get update : Update the packages on your Linux system | |
sudo apt-get upgrade : Apply the updates | |
sudo apt-get autoremove : Remove out of date and obsolete packages | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tweaking Linux Packages | |
The Linux Package system and the Linux Mint package manager recommended "Tweak". | |
How to setup the Package Manager | |
COMMANDS & LINKS: | |
Synaptic Package Manager: | |
Click Menu button - Administration - Synaptic Package Manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux Tips, Tricks and Tweaks | |
How to make your version of Linux even better. | |
1. Decrease Swap File use | |
a) Check "Swappiness": | |
cat /proc/sys/vm/swappiness | |
b) If Swappiness is 60, alter "Swappiness": | |
gksudo xed /etc/sysctl.conf | |
find vm.swappiness |
OlderNewer