Ten linux/unix os commands you should know
1- ls
list the files
2- cat
display a file and join more than two files
e.g
cat <file-name.txt>
cat <file1.txt> <file2.txt> ...
3- mkdir
create a diectory
e.g.
mkdir dir-name
4- cp
copy file from existing file to new one
e.g.
cp file1.txt file2.txt
5- mv
move a file name to another
e.g.
mv file1.txt file3.txt
6- uname
To check linux/unix OS and architecture(32/64 bit)
7- cut
To cut specified field/column from a file
e.g.
cut -f 2 file.txt
8- paste
Join two files content into one file
e.g
paste file1.txt file2.txt
9- grep
Search a string in a file
grep "maria" file1.txt
10- find
find the file in specified location
e.g.
find /home/expert file1.txt
1- ls
list the files
2- cat
display a file and join more than two files
e.g
cat <file-name.txt>
cat <file1.txt> <file2.txt> ...
3- mkdir
create a diectory
e.g.
mkdir dir-name
4- cp
copy file from existing file to new one
e.g.
cp file1.txt file2.txt
5- mv
move a file name to another
e.g.
mv file1.txt file3.txt
6- uname
To check linux/unix OS and architecture(32/64 bit)
7- cut
To cut specified field/column from a file
e.g.
cut -f 2 file.txt
8- paste
Join two files content into one file
e.g
paste file1.txt file2.txt
9- grep
Search a string in a file
grep "maria" file1.txt
10- find
find the file in specified location
e.g.
find /home/expert file1.txt
No comments:
Post a Comment