Home
build details

Every-day Linux

Modified 2018-06-22 by Andrea Censi

man

Modified 2018-06-22 by Andrea Censi

This is an interface to the on-line reference manuals. Whenever you meet some unfamiliar commands, try use man certain_command before Googling. You will find it extremely clear, useful and self-contained.

cd

Modified 2018-11-09 by Liam Paull

Go to the directory you want. If you just use:

$cd  then you will go to your home directory, i.e., /home/user/ To go up one directory use: $ cd ..


sudo

Modified 2018-06-22 by Andrea Censi

Whenever you want to modify system files, you will need sudo. Commonly touched system files including /etc, /opt and so on. Since most of you have followed the guideline to use passwordless sudo, I would recommend that make sure what you are doing with sudo before you execute the command, otherwise you may need to reinstall the system.

ls

Modified 2018-06-22 by Andrea Censi

List all the files and documents in the current directory. From ~/.bashrc, we know some commonly used alias. See more by man ls.

la for ls -a which will list out all files and documents including the hidden ones(whose name starts with a dot).

ll for ls -l which will display Unix file types, permissions, number of hard links, owner, group, size, last-modified date and filename.

cp

Modified 2018-06-22 by Andrea Censi

cp fileA directoryB will copy the file A to directory B. See more by executing man cp.

mv

Modified 2018-07-05 by Gianmarco Bernasconi

mv fileA directoryB will move the file A to directory B. See more by executing man mv. This command can be used to rename a file, to do so execute: mv fileA fileB

mkdir

Modified 2018-06-22 by Andrea Censi

Make new directory. See more by man mkdir.

touch

Modified 2018-07-05 by Gianmarco Bernasconi

Update the access and modification times of the input file to current time. See more by man touch. It can be used to create empty documents, for example: touch duckie.txt Will create an empty text file.

reboot

Modified 2018-06-22 by Andrea Censi

This command must be executed as root. sudo required. This will reboot your laptop or Raspberry Pi. See more by man reboot.

shutdown

Modified 2018-06-22 by Andrea Censi

This command requires sudo. You can set a countdown to shutdown you machine. More by man shutdown.

rm

Modified 2018-07-05 by Gianmarco Bernasconi

Remove certain file. rm -r will also remove directories. More in man rm.

No questions found. You can ask a question on the website.