Useful Unix & Linux system commands
chgrp change group name (*=all files) >sudo chgrp nobody * chmod
change file parameters
chmod change file parameters
chname
change file owner name
^c
interrupt command line (^=control key)
cp
copy file or folder
dir
list file names
df
show disk usage statistics
fdisk get list of disks >sudo fdisk kill
stop a running program by its pid number (see ps)
list
read a text file
ln create link >sudo ln -s /path/to/target linkname ls -l
show file list with descriptors
mkdir make a new folder
nano open non-graphical text editor >sudo nano filename rename change file name >sudo rename filename1 filename2 rm delete file or folder
>sudo rm *
ps
list running programs’ pid numbers
su enter ‘super user’ (root) mode >su sudo perform command with root privilege >sudo command unlink delete a link
xkill kill an offending application >xkill (click on application window)
|
|