Commands
Here are some survival-level linux commands:
Command |
What it does |
sudo command |
gives you administrator privileges for the duration of command |
passwd |
change your password (you'll need your current password) |
ls dir |
list the contents of a directory |
cd dir |
change to a directory |
pwd |
what directory am I in? |
whoami |
what is my username |
cp file new_file |
make a copy of file named new_file |
mv file new_file |
move/rename file to be new_file |
find . -iname "*.txt" |
find any files that end in .txt under the current directory (searches subdirectories) |
chmod +x file |
set file to be executable |
date |
show the date and time |
cal |
show the current calendar month |
nano file |
edit file in a friendly text editor |
vi file or emacs file |
edit file in a seriously powerful, full-bearded text editor of doom |
man topic |
read the manual page for topic (could be a command, a config file, etc.) |
Need more? Go read a better tutorial: Linux info