Mastering the CLI: basic linux commands

Intro, intermediate and advanced HOWTOs and discussion.
Post Reply
User avatar
weazy
Ex-Admin
Posts: 1688
Joined: Sun Jul 07, 2002 10:02 am
Location: any given
Contact:

Mastering the CLI: basic linux commands

Post by weazy » Fri May 30, 2003 5:20 pm

The following is a non-comprehensive list of commands that I use regularly and had some difficulty finding when I first started with Linux. These commands are the fundamentals -- absolute basics.

execute a program
./

change directory
cd

go to home dir
cd <space>

change permissions
chmod

change ownership
chown

create a new user
adduser

change password
passwd

make an ssh connection
ssh -l <username> <address>

use text browser
lynx <url>

switch users
su -u <username>

remote root login
su -u root (after regular connection is made)

create multiple screens
screen

check connections
netstat

access a cd
mount /mnt/cdrom

eject a cd
umount /mnt/cdrom eject

access irc channel
irc (assuming it is in a directory that is included in your env path)

access your ipchains or iptables
./ipchains or ipchains (may have to be in directory depending on env path)

check your location
pwd

send network message
talk <username or ip>

check network config
linuxconf

find a file
find / -name <filename> -print (wildcards * can be used)

get info on a program
make a new directory
remove a directory
list all files in a directory
display file content
copy files
move files
search for a keyword
create a new text doc
start X client
stop a process
man <program name>
mkdir <directory name>
rmdir <directory name>
ls
cat <filename>
cp <filename>
mv <source file directory> <new file directory>
grep <keyword><filename>
pico or vi (if you are a newbie, use pico)
startx
kill <process number>
--The Devil is in the Details--

sh_ithe_ad
Sargeant at Arms
Posts: 244
Joined: Thu Dec 11, 2003 4:28 pm

Re: Mastering the CLI: basic linux commands

Post by sh_ithe_ad » Wed Jan 13, 2010 11:10 am

Nice. Thanks a lot. If other members give you input will you edit this tutorial? I recommend you expand on the cat command telling people how to use it to merge files because thats a highly useful use of the cat command. e.g.

"cat file.001.extension file.002.extension file.003.extension > newfile.extension"

User avatar
Aiden
Administrator
Posts: 1080
Joined: Tue Oct 31, 2006 11:11 pm
Location: /usr/bin/perl

Re: Mastering the CLI: basic linux commands

Post by Aiden » Thu Jan 14, 2010 5:58 am

sh_ithe_ad wrote:Nice. Thanks a lot. If other members give you input will you edit this tutorial?
Most likely not, because this post is from 2003 and weazy is long gone.
"When it takes forever to learn all the rules, no time is left for breaking them."

Post Reply