![]() | |||||
maTei![]() best viewed with NetSurf |
My programs | Games | Other programs | ||
GNU/Linux | Computers & programming | Music & movies | |||
Other topics | What's new + README | Contact | |||
--------------------------------------------------------------------------------------- | |||||
General
History
Terminal
Vi IMproved
Installation
Getting started
Fedora-14-i386
ROSA.FRESH.LXQT
![]() |
Updated 2024-12-16 GNU/Linux terminal commands Usual commands.
man Offers information about commands or files.What manual page do you want? For example, try 'man man'. man man Information about command man,man rm about command rm,man fstab about file /etc/fstab.cd name Change the current directory. Example:cd /home/ Change the current directory to /home/.ls ls /usr/bin/ Display a list with files from the current directory, or from another directory.rm name rm -rf name Delete a file or a directory.touch name Create file name.mkdir name Create directory name.rmdir name Delete empty directory name.chmod 755 name Change permissions for access/writing/execution of file name; 755 - executable file; 644 - file can not be executed.cp name1 name2 cp -Rv name1 name2 Copy file or directory name1 in name2.mv name1 name2 Move file or directory name1 in name2. Works like cp, but the initial file or directory disappears.mount name1 name2 Mount a file system for accessing. Examples:mount /dev/sda1 /usbfs Directory /usbfs must be created first and su might be needed, along with its password.mount /media/cdrom File /etc/fstab must specify the file system associated with /media/cdrom.umount name Unmount a file system.grep text name Search for a series of characters in file name.grep -ri text * Search for text in all present files, recursively (-r) and without considering large or small letters (-i).find name -name "*text*" Search in the directory name, for files or directories which contain text in their name.tar -cf name.tar name Store files from the directory name in archive name.tar.tar -xvf name.tar Extract the files from the archive.gzip name.tar gzip -dv name.tar.gz bzip2 name.tar bzip2 -dv name.tar.gz Compression and extraction of archives.ln -s /usr/local/lib/... /usr/lib/... Create a symbolic link between 2 files. Useful for the case in which an executable file doesn't find a library file.chown -R user directory chgrp -R group directory Change the user or group of a directory. Might need su first.cat name cat name >> file Display the contents of a file in the terminal or saving it into a file.ps -A|more List all the processes that function.kill -9 # killall -9 name Finish process with number # or processes with name name. |
||||
--------------------------------------------------------------------------------------- |