Wednesday, January 11, 2012

Linux command reminders

ps -e    --- (process status) shows all processes currently running
shutdown -r now --- reboot
pwd --- shows what directory you are currently in.

filenames that begin with a dot (like .memphis) are hidden
ls -la --- this shows hidden files in listing

cat /etc/*-release   --- this shows which version of linux you have
uname -a --- shows which kernel you are running

df  --- shows disk size and available space on disk (disk free)
free --- shows amount of memory installed and amount free

The following commands added 14-March-2013:
su root - to switch to superuser

sudo usermod -a -G wheel margie (This command ads margie to wheel group. The wheel group is the admin group I think)

id username - shows info about user

/bin - many programs

/usr/bin/system-config-users  -- this is graphical program to add/modify users (on LXDE fedora)