----- 
maTeidotonE
best viewed with NetSurf
My programs Games Other programs
GNU/Linux Computers & programming Music & movies
Other topics What's new + README Contact
---------------------------------------------------------------------------------------
Updated 2024-12-16
GNU/Linux terminal commands
Usual commands.
 
Terminal Terminal

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

Changes the current directory. Example:

cd /home/

Changes the current directory to /home/.

ls

ls /usr/bin/

Displays a list with files from the current directory, or from another directory.

rm name

rm -rf /var/www/html/

Deletes a file or a directory.

touch name

Creates file name.

mkdir name

Creates directory name.

rmdir name

Deletes empty directory name.

chmod 755 name

Changes permisions for access/writing/execution of file name; 755 - executable file; 644 - file can not be executed.

cp name1 name2

cp -Rv /mnt/cdrom/games /home/myname/

Copies file or directory name1 in name2.

mv name1 name2

Moves file or directory name1 in name2. Works like cp, but the initial file or directory disappears.

mount name1 name2

Mounts a file system for accessing. Examples:

mount /dev/sda1 /usbfs

Directory /usbfs must be created first.

mount /media/cdrom

File /etc/fstab must specify the file system associated with /media/cdrom.

umount name

Unmounts a file system.

grep text name

Searching for a series of characters in file name.

grep -ri text *

Searching 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 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 /dev/cdrom1 /dev/dvd

ln -s /usr/local/lib/... /usr/lib/...

Creating a symbolic link between files. Useful for the case in which an executable file doesn't find the library files where it searches them.

chown -R user directory

chgrp -R group directory

Changing the user or group of a directory. Might need su first.

cat name

cat name >> file

Displaying 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.
---------------------------------------------------------------------------------------
© 2024 Matei. No cookies®