You Are Here: Home » C.L.G

C.L.G

What is C.L.G ?

You must’ve been wondering what would it be “CLG”, well It refers to :

Command Line GURU or CLI GURU ;)
… Be patient, this page is under construction!

mount

Mount a file system
mount -a -t nomsdos,ext
Mount all file systems in /etc/fstab except for those of type msdos or ext

umount

Unmount a file system
umount -a
Unmount all file system in /etc/fstab.
umount /dev/cdrom/
Unmount the filesystem mounted on the partition /dev/cdrom.

cat

Concatenate files and print on stdout
cat toto
Prints the content of the file toto.sh to stdout
cat toto tata > tota
Concatenate the files toto and tata and writes the result to stdout which is redirected to the file tota

tac

Like cat but print files in reverse
tac toto
Prints the content of the file toto.sh in reverse
tac toto tata > tota
Concatenate the files toto and tata in reverse and writes the result to stdout which is redirected to the file tota

chmod

Change file mode bits
chmod 755 toto
Give full permissions to the owner, but only read and execute permissions to the group and others.
chmod -R +x totodir
Recursive add execution permissions to all for all directories from totodir and below.

cp

Copy files and directories
cp -p file1 file2
Copies file1 to file2 and preserve the rights in the copy.
cp -rf dir
Copies the folder dir and all it’s contents to the current path without asking.

cut

Remove sections from each line of files
echo “123456789″ | cut -c -5
This command prints “12345″, because -c 5 means up to and included the 5th character.

arp

Manipulate the system ARP cache

dig

DNS lookup utility

ftp

File transfert protocol client

hostname

Show or set the system’s host name

ifconfig

Configure a network interface
Scroll to top