4. Files and Directories
extension is not needed
.myfile
- hidden, if name starts with dot.mydirectory/
- hidden, if name starts with dot/
- root dir.
- current dir..
- upper dir
4.1. Change Directory
cd
cd /absolute/path
cd relative/path
cd ~
cd -
cd ..
4.2. List Files and Directories
ls
ls /absolute/path
ls relative/path
ls -lah
alias l='ls -lAh --color=auto'
4.3. Files
Command |
Type |
Description |
---|---|---|
|
checksum and count the blocks in a file |
|
|
Vi IMproved, a programmer's text editor |
|
|
Vi IMproved, a programmer's text editor |
|
|
edit between two and eight versions of a file with Vim and show differences |
|
|
print number of characters in file |
|
|
print number of lines in file |
|
|
print newline, word, and byte counts for each file |
|
|
print lines that match patterns |
|
|
remove sections from each line of files |
|
|
output the first part of files |
|
|
display file contents in hexadecimal, decimal, octal, or ascii |
|
|
print lines that match patterns |
|
|
join lines of two files on a common field |
|
|
compare files line by line |
|
|
split a file into pieces |
|
|
Vi IMproved, a programmer's text editor |
|
|
print the sequences of printable characters in files |
|
|
write to a file descriptor |
|
|
report or omit repeated lines |
|
|
sort lines of text files |
|
|
Nano's ANOther editor, inspired by Pico |
|
|
open and possibly create a file |
|
|
read from a file descriptor |
|
|
output of characters and strings |
|
|
(3readline) |
get a line from a user with editing |
|
concatenate files and print on the standard output |
|
|
convert and copy a file |
|
|
line-oriented text editor |
|
|
||
|
guess character encodings of files |
|
|
determine file type |
|
|
overview of system data types |
|
|
file perusal filter for crt viewing |
|
|
Nano's ANOther editor, inspired by Pico |
|
|
set file capabilities |
|
|
||
|
output the last part of files |
|
|
||
|
read from standard input and write to standard output and files |
|
|
duplicating pipe content |
|
|
create a temporary file in a safe manner |
|
|
call the unlink function to remove the specified file |
|
|
delete a name and possibly the file it refers to |
|
|
apply a diff file to an original |
4.4. Directories
Command |
Type |
Description |
---|---|---|
|
change root directory |
|
|
run command or interactive shell with special root directory |
|
|
make directories |
|
|
create a directory |
|
|
remove empty directories |
|
|
delete a directory |
4.5. Files and Directories
Command |
Type |
Description |
---|---|---|
|
Midnight Commander |
|
|
Change directory |
|
|
change file attributes on a Linux file system |
|
|
change group ownership |
|
|
change file mode bits |
|
|
change permissions of a file |
|
|
change file owner and group |
|
|
change ownership of a file |
|
|
copy files and directories |
|
|
copy files to and from archives |
|
|
list directory contents |
|
|
strip last component from file name |
|
|
parse pathname components |
|
|
||
|
estimate file space usage |
|
|
search for files in a directory hierarchy |
|
|
||
|
||
|
opposite of more |
|
|
||
|
||
|
make links between files |
|
|
Locates file (from updatedb database) |
|
|
list directory contents |
|
|
list file attributes on a Linux second extended file system |
|
|
move (rename) files |
|
|
print name of current/working directory |
|
|
OpenSSH secure file copy |
|
|
||
|
Remove |
|
|
remove files or directories |
|
|
Syncronizes two directories |
|
|
a fast, versatile, remote (and local) file-copying tool |
|
|
OpenSSH secure file copy |
|
|
overwrite a file to hide its contents, and optionally delete it |
|
|
list section sizes and total size of binary files |
|
|
display file or file system status |
|
|
change file timestamps |
|
|
list contents of directories in a tree-like format. |
|
|
set file mode creation mask |
|
|
Scans filesystem and create database for locate |