<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.yardle.net/index.php?action=history&amp;feed=atom&amp;title=Basic_Ubuntu_Commands</id>
	<title>Basic Ubuntu Commands - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.yardle.net/index.php?action=history&amp;feed=atom&amp;title=Basic_Ubuntu_Commands"/>
	<link rel="alternate" type="text/html" href="https://wiki.yardle.net/index.php?title=Basic_Ubuntu_Commands&amp;action=history"/>
	<updated>2026-04-17T11:51:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.0</generator>
	<entry>
		<id>https://wiki.yardle.net/index.php?title=Basic_Ubuntu_Commands&amp;diff=5&amp;oldid=prev</id>
		<title>Ecliptica: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.yardle.net/index.php?title=Basic_Ubuntu_Commands&amp;diff=5&amp;oldid=prev"/>
		<updated>2021-06-20T21:21:08Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:21, 20 June 2021&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key yardlewiki:diff::1.12:old-4:rev-5 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ecliptica</name></author>
	</entry>
	<entry>
		<id>https://wiki.yardle.net/index.php?title=Basic_Ubuntu_Commands&amp;diff=4&amp;oldid=prev</id>
		<title>yp&gt;Ecliptica: creating page</title>
		<link rel="alternate" type="text/html" href="https://wiki.yardle.net/index.php?title=Basic_Ubuntu_Commands&amp;diff=4&amp;oldid=prev"/>
		<updated>2016-05-16T04:20:16Z</updated>

		<summary type="html">&lt;p&gt;creating page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Miscellaneous]]&lt;br /&gt;
Below is a list of the most common terminal commands for Ubuntu. It was written based on Ubuntu 9.10 but the vast majority of these commands work on all [[Linux]] distributions.&lt;br /&gt;
&lt;br /&gt;
== Root access ==&lt;br /&gt;
&lt;br /&gt;
The term &amp;quot;root access&amp;quot; refers to complete administrative access over a particular system. In most Linux distributions, commands such as installing programs and creating user accounts must be done from the root account. This is similar to User Account Control (UAC) in Windows Vista and Windows 7.&lt;br /&gt;
&lt;br /&gt;
Running commands from the root account is easier than it sounds. In front of the command you wish to run as administrator, just insert &amp;#039;&amp;#039;&amp;#039;sudo&amp;#039;&amp;#039;&amp;#039; (which stands for &amp;#039;&amp;#039;&amp;#039;s&amp;#039;&amp;#039;&amp;#039;ubstitute &amp;#039;&amp;#039;&amp;#039;u&amp;#039;&amp;#039;&amp;#039;ser &amp;#039;&amp;#039;&amp;#039;do&amp;#039;&amp;#039;&amp;#039;. You&amp;#039;ll be asked to type your administrator account password if you haven&amp;#039;t done so already in that terminal session.&lt;br /&gt;
&lt;br /&gt;
To change the state of a terminal such that all commands issued in it are run from the root account, enter the command &amp;#039;&amp;#039;&amp;#039;sudo su&amp;#039;&amp;#039;&amp;#039;. To exit this mode, type &amp;#039;&amp;#039;&amp;#039;exit&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;sudo &amp;lt;command&amp;gt;&amp;#039;&amp;#039;&amp;#039; # executes &amp;lt;command&amp;gt; from root account}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;sudo su&amp;#039;&amp;#039;&amp;#039; # switches terminal state to run all commands from root}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;exit&amp;#039;&amp;#039;&amp;#039; # exits sudo su mode}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Navigating through folders and files ==&lt;br /&gt;
&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;pwd&amp;#039;&amp;#039;&amp;#039; # &amp;quot;print working directory&amp;quot;; shows current directory}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;ls&amp;#039;&amp;#039;&amp;#039; # prints files and folders in the current directory}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;cd /new/path&amp;#039;&amp;#039;&amp;#039; # changes the directory to a certain path, like /home/root/}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;cd ..&amp;#039;&amp;#039;&amp;#039; # changes to the directory above your current one; functions like &amp;quot;up one level&amp;quot;}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;mkdir &amp;lt;directory&amp;gt;&amp;#039;&amp;#039;&amp;#039; # creates a new directory in your current one}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;rmdir &amp;lt;directory&amp;gt;&amp;#039;&amp;#039;&amp;#039; # removes a directory in your current one}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;rm &amp;lt;file&amp;gt;&amp;#039;&amp;#039;&amp;#039; #removes a file in your current one}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;rm -r &amp;lt;folder&amp;gt;&amp;#039;&amp;#039;&amp;#039; # removes a folder regardless of files and subdirectories in it}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;cp &amp;lt;file1&amp;gt; &amp;lt;file2&amp;gt;&amp;#039;&amp;#039;&amp;#039; # copies file1 into file2}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;mv &amp;lt;file1&amp;gt; &amp;lt;file2&amp;gt;&amp;#039;&amp;#039;&amp;#039; # moves or renames files and folders}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you hit the tab key while typing a file or directory name, it will autocomplete the name.&lt;br /&gt;
&lt;br /&gt;
== Editing Text Files ==&lt;br /&gt;
Many text editors exist for Ubuntu. Of note are &amp;#039;&amp;#039;nano&amp;#039;&amp;#039;, &amp;#039;&amp;#039;emacs&amp;#039;&amp;#039;, &amp;#039;&amp;#039;vi&amp;#039;&amp;#039;/&amp;#039;&amp;#039;vim&amp;#039;&amp;#039; and &amp;#039;&amp;#039;gedit&amp;#039;&amp;#039;.&lt;br /&gt;
*&amp;#039;&amp;#039;vi&amp;#039;&amp;#039;/&amp;#039;&amp;#039;vim&amp;#039;&amp;#039; is a powerful text editor that runs completely in the terminal. Its controllers are unusual, and complex however.&lt;br /&gt;
*&amp;#039;&amp;#039;nano&amp;#039;&amp;#039; is another terminal based text editor. It is not as powerful as &amp;#039;&amp;#039;vim&amp;#039;&amp;#039; but it has simpler controls.&lt;br /&gt;
*&amp;#039;&amp;#039;gedit&amp;#039;&amp;#039; is a GUI based text editor, that acts like notepad, but more powerful.&lt;br /&gt;
*&amp;#039;&amp;#039;emacs&amp;#039;&amp;#039; is a text editor that works both in GUI and in a terminal. You are forced to use it if you ever take CMPUT 201&lt;br /&gt;
&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;emacs &amp;lt;filename&amp;gt;&amp;#039;&amp;#039;&amp;#039; # edits the file with emacs}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;gedit &amp;lt;filename&amp;gt;&amp;#039;&amp;#039;&amp;#039; # edits the file with gedit}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;nano &amp;lt;filename&amp;gt;&amp;#039;&amp;#039;&amp;#039; # edits the file with nano}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;vi &amp;lt;filename&amp;gt;&amp;#039;&amp;#039;&amp;#039; # edits the file with vi}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installing and removing software ==&lt;br /&gt;
&lt;br /&gt;
Free software is contained in databases called &amp;#039;&amp;#039;repositories&amp;#039;&amp;#039;. You can download software from these repositories using the command line.&lt;br /&gt;
&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;sudo apt-get install &amp;lt;package name&amp;gt;&amp;#039;&amp;#039;&amp;#039; # installs a specific package}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;sudo apt-get remove &amp;lt;package name&amp;gt;&amp;#039;&amp;#039;&amp;#039; #removes a specific package}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;sudo apt-get update&amp;#039;&amp;#039;&amp;#039; # retrieves a new list of packages}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;sudo apt-get upgrade&amp;#039;&amp;#039;&amp;#039; # upgrades your software}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;sudo apt-get autoremove&amp;#039;&amp;#039;&amp;#039; # uninstalls unused packages}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;sudo apt-get dist-upgrade&amp;#039;&amp;#039;&amp;#039; # upgrades your operating system to the newest version}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;sudo apt-get autoclean&amp;#039;&amp;#039;&amp;#039; # deletes old package files}}&amp;lt;br /&amp;gt;&lt;br /&gt;
{{code|&amp;#039;&amp;#039;&amp;#039;sudo apt-get check&amp;#039;&amp;#039;&amp;#039; # checks for broken dependencies}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Keyboard shortcuts ==&lt;br /&gt;
&lt;br /&gt;
{{key|Tab}} is used to autocomplete path and file names.&amp;lt;br /&amp;gt;&lt;br /&gt;
{{key|Ctrl|C}} is used to terminate processes.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Middle Click&amp;#039;&amp;#039;&amp;#039; pastes data from the clipboard. You can also click both mouse buttons at the same time on mice with no center button or wheel.&amp;lt;br /&amp;gt;&lt;br /&gt;
The {{key|Up}} and {{key|Down}} arrow keys navigate through past commands, allowing you to enter them again.&amp;lt;br /&amp;gt;&lt;br /&gt;
{{key|Ctrl|U}} deletes your current line.&amp;lt;br /&amp;gt;&lt;br /&gt;
{{key|Home}} and {{key|End}} move to the start and end of a line.&amp;lt;br /&amp;gt;&lt;br /&gt;
{{key|Ctrl|B}} moves to the beginning of the current word.&amp;lt;br /&amp;gt;&lt;br /&gt;
{{key|Ctrl|K}} deletes from the current cursor position to the end of the line.&amp;lt;br /&amp;gt;&lt;br /&gt;
{{key|Ctrl|Left}} and {{key|Ctrl|Right}} navigate through words in the current line.&amp;lt;br /&amp;gt;&lt;br /&gt;
{{key|Ctrl|W}} Duplicates all items in your inventory.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Go to Viridian City and walk north until you reach the Old Man who&amp;#039;s just had his coffee. He&amp;#039;ll ask if you&amp;#039;re in a hurry. Tell him no. Watch a demonstration on how to catch Pokemon. &amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;#039;&amp;#039;Fly straight to Cinnabar Island. Get on a water Pokemon and Surf along the east coast of Cinnabar. (Note: in this area, you will encounter Pokemon from the last area you visited. It&amp;#039;s a great idea to come here after you leave the Safari Zone, as you can catch Safari Pokemon using regular attacks and Poke Balls, not just food and rocks.) &amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;#039;&amp;#039;Keep Surfing until you discover a &amp;quot;glitched&amp;quot; Pokemon (sometimes called &amp;quot;the Missing No&amp;quot;). By the way, you will also receive an &amp;quot;infinite&amp;quot; amount of the item you have in the 6th spot. It&amp;#039;s a good idea to clone items like Full Restore, Rare Candy, Lemonade, Max Revive, Poke Balls (especially the Master Ball) and Evolution Stones. A pixelly symbol will appear next to the item, showing that you have many more of the item.&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>yp&gt;Ecliptica</name></author>
	</entry>
</feed>