Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic terminal commands and explinations.
#1
Main command list on how to navigate around in terminal.

ls - lists everything in the current directory.
cd dir - navigates into that directory.
nano file - opens up the file in a text editor like thing.
cat file - displays the file
cat File1 >> file2 - puts all of file 1's contents to the bottom of file 2's contents
exit - exit's
su - username - changes your permissions to that users permissions.
sudo command - gives you root permissions for that execution.
ps -aux|more - views what is running
kill -9 pid - Kills the program by PID.


Debian:
apt-cache search program - searches for the program in apt.
apt-get install program - downloads and installs the program
apt-get remove program - removes the program
apt-get update - Updates the deb download list.

Fedora:
yum search program - searches for the program in yum.
yum install program - downloads and installs the program
yum remove program - removes the program.


I will add more later. Post other commands you would like to see added and I will add them and add you to the credits.

Credits:
ME
Tm0
Reply
#2
ps -aux|more would be a good one, and kill -9 (processes id)
(This will search all the process and will kill the one that you want)
Su.
To log onto root for whatever reason *So you don't need to do sudo all the time i guess Tongue.*
sudo passwd
Set teh SU password
(su) Sudo apt-get update.
Updates everything

My contribution ;)
Reply
#3
(10-04-2009, 09:44 PM)Tm0 Wrote: ps -aux|more would be a good one, and kill -9 (processes id)
(This will search all the process and will kill the one that you want)
Su.
To log onto root for whatever reason *So you don't need to do sudo all the time i guess Tongue.*
sudo passwd
Set teh SU password
(su) Sudo apt-get update.
Updates everything

My contribution ;)


added what you said, thanks.
Reply
#4
ps -aux|more

You forgot the A, and you should add the option for more. Otherwise i always can't find the stupid crashing games...
Reply
#5
Thanks interristing for a linux newb like me Smile
Reply
#6
Good post Smile
Reply
#7
This will help ALOT of people that are new to linux. Its hard to find out what commands to use. You listed some pretty useful commands.
Reply
#8
(10-05-2009, 07:23 AM)Austin Wrote: This will help ALOT of people that are new to linux. Its hard to find out what commands to use. You listed some pretty useful commands.

That's why I wrote it up.
Reply
#9
Archlinux

pacman -S <packagename> installs package

pacman -Syu updates =]
Reply
#10
Thanks for that. And i did forget who used pacman Tongue
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Change username in Terminal from .bashrc AceInfinity 2 1,824 04-04-2011, 05:04 PM
Last Post: AceInfinity
  Using Linux Terminal Minus-Zero 5 1,637 06-29-2010, 12:49 PM
Last Post: Canoris
  Guake Drop Down Terminal g4143 9 2,132 12-06-2009, 10:24 PM
Last Post: arcofile
  Destructive Linux Commands nevets04 6 3,322 10-26-2009, 10:00 AM
Last Post: TheDoctor
  Is there a way to keep terminal ontop of all other windows? nevets04 3 1,478 10-18-2009, 08:06 PM
Last Post: nevets04

Forum Jump:


Users browsing this thread: 2 Guest(s)