linux/bash commands damian gordon. ls list all the visible files in the current folder

9
Linux/Bash Commands Damian Gordon

Upload: benjamin-eaton

Post on 23-Dec-2015

214 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Linux/Bash Commands Damian Gordon. ls List all the visible files in the current folder

Linux/Bash Commands

Damian Gordon

Page 2: Linux/Bash Commands Damian Gordon. ls List all the visible files in the current folder

ls

• List all the visible files in the current folder.

Page 3: Linux/Bash Commands Damian Gordon. ls List all the visible files in the current folder

ls -a

• List all the visible and hidden files in the current folder.

e.g.

.bashrc

.login

Page 4: Linux/Bash Commands Damian Gordon. ls List all the visible files in the current folder

ls -l

• List all the visible files in the current folder, and give details of who created it, when, the file size, priorities.

Page 5: Linux/Bash Commands Damian Gordon. ls List all the visible files in the current folder

ls -la

• List all the visible and hidden files in the current folder, and give details of who created it, when, the file size, priorities.

Page 6: Linux/Bash Commands Damian Gordon. ls List all the visible files in the current folder

pwd

• Print working directory• Tell me my current location

Page 7: Linux/Bash Commands Damian Gordon. ls List all the visible files in the current folder

cd .

• cd = change directory• . = current directory

• So this command moves from you form the current directory back to the current directory.

Page 8: Linux/Bash Commands Damian Gordon. ls List all the visible files in the current folder

cd ..

• cd = change directory• .. = previous directory

• So this command moves from you form the current directory back one step to the previous directory.

Page 9: Linux/Bash Commands Damian Gordon. ls List all the visible files in the current folder

man man

• ‘man’ is the help command, it gives you the MANual page about a specific topic, in this case it is giving you the manual page about the ‘man’ command.